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.
Related Articles Artikel Terkait
- Send an Anonymous Email Message With Web Based Anonymous Mail Service Providers Kirim Pesan Email Anonymous Dengan Web Based Anonymous Mail Service Providers
- Windows Media Center Shell (ehshell.exe) Command Line Switches and Options Windows Media Center Shell (ehshell.exe) Command Line Switches dan Pilihan
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail) Mengirim Email dari penundaan Pesan dalam Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL dan semua POP3/IMAP Mail)
- Send Free Text Message With Hundreds of Email to SMS Gateway or Internet Web SMS from Operator Kirim Pesan Teks Dengan Gratis Ratusan Email ke SMS Gateway atau Internet Web SMS dari operator
- How to Create Email Account and Receive Mail for Abuse and Postmaster in Google Apps Cara Membuat Account Email dan Menerima Surat untuk postmaster dan Penyalahgunaan dalam Google Apps
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut Restart atau Shutdown Windows (XP, Vista dan 2000) dari Baris Perintah atau Satu-Klik Shortcut
- Remove ESET NOD32 Checked Email Confirmation Tag Message in Email Hapus ESET NOD32 Dicentang Email Konfirmasi Tag Pesan dalam Email
- Email Bounces Back with “unrouteable mail domain” Error Bouncing email Kembali dengan "unrouteable mail domain" Kesalahan
- Yahoo Mail New Feature to Allow E-Mailers Text-Message to Phones Yahoo Mail Fitur Baru ke P'boleh E-mailer-Teks Pesan ke Telepon
- Unlimited Email Storage and Infinity Mail Space for Yahoo! Unlimited Email Storage dan Infinity Mail Ruang Angkasa untuk Yahoo! Mail Mail










































June 29th, 2009 00:24 29 Jun 2009 00:24
you have to config your sendmail to make it work Anda harus konfigurasi sendmail anda agar bekerja
June 28th, 2009 11:53 28 Jun 2009 11:53
Argh. Argh. It's a Terminal not a commandline. It's a Terminal bukan commandline.