How to Send an Email (Mail Message) from Linux Command Line Shell Cara Kirim Email (Mail Pesan) dari Linux Shell Command Line

Occasionally system administrator may need to send a test email, or emergency mail message right from the shell or command line interpreter when using a Linux flavor or distribution of operating system, be Red Hat Fedora, Ubuntu, Debian, CentOS, Open SUSE, FreeBSD and others. Sesekali administrator sistem mungkin perlu untuk mengirim email ujian, atau darurat mail langsung dari shell atau interpreter perintah baris ketika menggunakan Linux flavor atau distribusi dari sistem operasi, jangan Red Hat Fedora, Ubuntu, Debian, CentOS, Buka SUSE, dan FreeBSD lain. In this case, the mail command will come in handy. Dalam hal ini, surat perintah akan datang menolong.

mail is a command to send and receive mail in Unix, Linux and BSD operating system. surat perintah untuk mengirim dan menerima email di Unix, Linux dan sistem operasi BSD. To initiate a mail sending process, just type in the following command: Untuk melakukan proses mengirim surat, cukup ketik perintah berikut:

mail recipient@domain.com

Obviously, replace recipient@domain.com with a valid email address. Tentunya, ganti recipient@domain.com dengan alamat email yang valid.

The system will prompt for a subject of the email before allowing user to type in the mail message body. Sistem akan meminta untuk subjek email sebelum memungkinkan pengguna untuk mengetik pesan di tubuh.

# mail receipent@domain.com # Mail receipent@domain.com
Subject: For Testing Only Perihal: Hanya Untuk Ujian
This email is for testing the mail delivery system only. Email ini adalah untuk menguji sistem pengiriman surat saja.
^D (EOT) ^ D (EOT)
Cc: Cc:

Once finished typing the email message, press Ctrl-D (shown as ^D in example above), which represents End of Text (EOT). Setelah selesai mengetik pesan email, tekan Ctrl-D (^ D seperti ditunjukkan dalam contoh di atas), yang mewakili Akhir Teks (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. Tergantung pada sistem, mail mungkin atau tidak prompt lain meminta masukan untuk setiap penerima cc (carbon copy) ke. Press Enter to skip or accept the input, and get the mail sent. Tekan Enter untuk melewati atau menerima masukan, dan mendapatkan surat dikirim.

Tip: If the sender and recipient is on the same system, it's possible to omit the domain (@domain.com) part of the address, leaving only user name. Tip: Jika pengirim dan penerima pada sistem yang sama, mungkin untuk menghilangkan domain (@ domain.com) bagian alamat, hanya meninggalkan nama pengguna.

It's also possible to use mail's arguments or switches to directly send mail without interactive input. Ada juga dapat digunakan mail dari argumen atau beralih ke langsung mengirim email tanpa interaktif prediksi. For example, Misalnya,

mail -s Test address@domain.com < /dev/null

Command above will immediately send a blank email with empty body to the recipient address with the subject "Test". Perintah di atas akan segera mengirim email kosong dengan tubuh kosong ke alamat penerima dengan subject "Test". For more arguments, type "man mail". Untuk informasi lebih argumen, ketik "mail man".

IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman yang diterjemahkan mesin dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Mesin terjemahan mungkin sulit dimengerti. Please refer to Silakan merujuk ke original English article artikel asli Inggris whenever possible. bila memungkinkan.


2 Responses to “How to Send an Email (Mail Message) from Linux Command Line Shell” 2 Responses to "Cara Kirim Email (Mail Pesan) dari Baris Perintah Linux Shell"

  1. tim tim
    June 29th, 2009 00:24 29 Jun 2009 00:24
    2 2

    you have to config your sendmail to make it work Anda harus konfigurasi sendmail anda agar bekerja

  2. 908 908
    June 28th, 2009 11:53 28 Jun 2009 11:53
    1 1

    Argh. Argh. It's a Terminal not a commandline. It's a Terminal bukan commandline.

Leave a Reply Meninggalkan Balas

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Anda dapat menggunakan tag ini: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Berlangganan ke fitur komentar telah dinonaktifkan. To receive notification of latest comments posted, subscribe to Untuk menerima pemberitahuan komentar diposting terbaru, berlangganan My Digital Life Comments RSS feed Saya Digital Life Komentar RSS feed or atau register to receive mendaftar untuk menerima new comments in daily email digest. komentar baru di email harian digest.
Custom Search

New Articles Artikel Baru

Incoming Search Terms for the Article Cari Syarat masuk untuk Artikel

linux mail command linux surat perintah - -- sendmail command line sendmail perintah baris - -- linux send mail from command line linux mengirim surat perintah dari baris - -- send mail from command line linux mengirim surat dari baris perintah linux - -- sendmail command line example contoh baris perintah sendmail - -- linux send email command line linux mengirim email baris perintah - -- linux send email from command line linux mengirim email dari perintah baris - -- command line email linux baris perintah email linux - -- how to send mail from linux command line bagaimana cara mengirim surat dari linux perintah baris - -- linux mail command line linux surat perintah baris - -- email from linux command line email dari linux perintah baris - -- sendmail command example sendmail perintah contoh - -- sendmail command line email baris perintah sendmail email - -- send email from command line mengirim email dari perintah baris - -- sending mail from command line mengirimkan surat perintah dari baris - -- send mail command line linux mengirim surat perintah baris linux - -- yahoo hotmail yahoo hotmail - -- linux command line mail command linux perintah baris surat perintah - -- sendmail command example in linux with subject and body sendmail contoh perintah di linux dengan subyek dan tubuh - -- how to send an email bagaimana cara mengirim email - -- send mail from linux commandline mengirim surat dari linux commandline - -- test email address send message test alamat email mengirim pesan - -- mail command in shell surat perintah shell - -- send mail from command line mengirim surat perintah dari baris - -- send yahoo mail from command line mengirim e-mail dari command line - -- linux cli mail linux cli mail - -- email sending in command line mengirim email dalam baris perintah - -- linux sendmail command example sendmail linux perintah contoh - -- mail linux command linux surat perintah - -- man mail linux man linux mail - -- sendmail send email command line sendmail mengirim email baris perintah - -- test send email linux test mengirim email linux - -- linux mail command from linux surat perintah dari - -- linux send email linux mengirim email - -- mail command linux surat perintah linux - -- sending mail from linux mengirim surat dari linux - -- anonymous email linux anonymous email linux - -- how to use mail in linux cara menggunakan mail di linux - -- linux command line email linux perintah baris email - -- mail command in linux surat perintah di linux - -- mail command linux example contoh surat perintah linux - -- sendmail command line send email sendmail baris perintah mengirim email - -- test email linux tes email linux - -- linux commandline mail linux commandline mail - -- linux send email commandline linux mengirim email commandline - -- send command line email mengirim perintah baris email - -- how to send mail on command line cara untuk mengirim email pada baris perintah - -- send mail with mail command mail dengan mengirim surat perintah - -- how to use linux mail command cara menggunakan linux surat perintah - -- linux mail commands linux surat perintah - --