How to Send an Email (Mail Message) from Linux Command Line Shell כיצד לשלוח דוא"ל (דואר הודעה) מ לינוקס מעטפת שורת הפקודה

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. מדי פעם מנהל המערכת עשוי להזדקק לשלוח לבדוק דוא"ל או הודעת דואר חירום כבר מן מעטפת שורת הפקודה, או באמצעות מתורגמן, כאשר טעם לינוקס או הפצה של מערכת ההפעלה Red Hat להיות Fedora, Ubuntu, Debian, CentOS, פתח הרשמה, FreeBSD ו אחרים. In this case, the mail command will come in handy. במקרה זה, את פקודת הדואר יגיע שימושי.

mail is a command to send and receive mail in Unix, Linux and BSD operating system. Mail הוא פקודה לשלוח ולקבל דואר ב-Unix, Linux ו BSD מערכת ההפעלה. To initiate a mail sending process, just type in the following command: כדי ליזום תהליך שליחת הדואר, פשוט להקליד את הפקודה הבאה:

mail recipient@domain.com

Obviously, replace recipient@domain.com with a valid email address. כמובן, להחליף recipient@domain.com עם כתובת דוא"ל חוקית.

The system will prompt for a subject of the email before allowing user to type in the mail message body. המערכת תבקש עבור הנושא של דוא"ל לפני המאפשרת למשתמש להקליד את גוף הודעת הדואר.

# mail receipent@domain.com # דואר receipent@domain.com
Subject: For Testing Only נושא: רק לבדיקה
This email is for testing the mail delivery system only. דוא"ל זה לבדיקת מערכת הדואר במשלוח בלבד.
^D (EOT) ^ D (EOT)
Cc: עותק:

Once finished typing the email message, press Ctrl-D (shown as ^D in example above), which represents End of Text (EOT). לאחר שסיימת להקליד את הודעת הדוא"ל, לחץ על Ctrl-D (^ כפי שמוצג בדוגמה לעיל ד ב), אשר מייצג סוף הטקסט (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. בהתאם למערכת, מאי מייל או לא תבקש קלט אחר הבקשה לכל הנמענים כדי cc (carbon copy) כדי. Press Enter to skip or accept the input, and get the mail sent. לחץ על Enter כדי לדלג או לקבל קלט, ולקבל בדואר שנשלח.

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. טיפ: אם השולח ושל המקבל היא על אותה מערכת, ניתן להשמיט את התחום (@ domain.com) חלק כתובת והשאירו רק שם המשתמש.

It's also possible to use mail's arguments or switches to directly send mail without interactive input. אפשר גם להשתמש בדואר של טענות או בוררים כדי לשלוח דואר ישירות ללא Interactive קלט. For example, לדוגמה,

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". פיקוד לעיל יהיה ריק מיד שלח דוא"ל עם הגוף ריק למקבל כתובת עם הנושא "test". For more arguments, type "man mail". לפרטים טענות, הקלד "האיש הדואר".

IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף הוא מכונה בתרגום ובתנאי "כמות שהוא", ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to אנא פנה ל original English article המאמר המקורי באנגלית whenever possible. ככל שניתן.


2 Responses to “How to Send an Email (Mail Message) from Linux Command Line Shell” 2 תגובות ל "כיצד לשלוח דוא"ל (דואר הודעה) מ לינוקס מעטפת שורת הפקודה"

  1. tim Tim
    June 29th, 2009 00:24 יוני 29, 2009 00:24
    2 2

    you have to config your sendmail to make it work אתה צריך את sendmail config כדי לגרום לזה לעבוד

  2. 908 908
    June 28th, 2009 11:53 יוני 28, 2009 11:53
    1 1

    Argh. Argh. It's a Terminal not a commandline. זה לא של Terminal CommandLine.

Leave a Reply השאירו תגובה

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> אתה יכול להשתמש בקבצי תגיות: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <דל datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. הצטרף כמנוי ל הערות תכונה הושבת. To receive notification of latest comments posted, subscribe to כדי לקבל הודעה על תגובות העדכנית פורסם, כדי להירשם My Digital Life Comments RSS feed החיים שלי דיגיטלי תגובות RSS Feed or או register to receive הרשמה לקבלת new comments in daily email digest. תגובות חדש ב דוא"ל תקציר יומי.
Custom Search

New Articles מאמרים חדשים

Incoming Search Terms for the Article חיפוש נכנס על תנאי סעיף

linux mail command Linux מייל פקודה - -- sendmail command line שורת הפקודה sendmail - -- linux send mail from command line Linux שלח דואר בשורת פקודה - -- send mail from command line linux שלח דואר בשורת פקודה Linux - -- sendmail command line example sendmail שורת הפקודה בדוגמה - -- linux send email command line Linux שלח שורת הפקודה - -- linux send email from command line Linux שלח מתוך שורת הפקודה - -- command line email linux שורת הפקודה דוא"ל Linux - -- how to send mail from linux command line כיצד לשלוח דואר Linux שורת הפקודה - -- linux mail command line Linux דואר בשורת פקודה - -- email from linux command line דוא"ל של לינוקס בשורת פקודה - -- sendmail command example sendmail הפקודה בדוגמה - -- sendmail command line email שורת הפקודה sendmail דוא"ל - -- send email from command line שלח מתוך שורת הפקודה - -- sending mail from command line שליחת מייל מתוך שורת הפקודה - -- send mail command line linux שלח דואר בשורת פקודה Linux - -- yahoo hotmail Yahoo Hotmail - -- linux command line mail command Linux שורת הפקודה פקודה מייל - -- sendmail command example in linux with subject and body הפקודה בדוגמה sendmail ב Linux עם נושא וגוף - -- how to send an email כיצד לשלוח הודעת דוא"ל - -- send mail from linux commandline שלח דואר Linux CommandLine - -- test email address send message הבדיקה שלח הודעת דוא"ל לכתובת - -- mail command in shell דואר ב מעטפת פקודה - -- send mail from command line שלח דואר בשורת פקודה - -- send yahoo mail from command line Yahoo שלח דואר בשורת פקודה - -- linux cli mail Linux CLI מייל - -- email sending in command line שליחת דוא"ל ב שורת הפקודה - -- linux sendmail command example Linux sendmail הפקודה בדוגמה - -- mail linux command מייל Linux פקודה - -- man mail linux האיש דואר Linux - -- sendmail send email command line sendmail שלח שורת הפקודה - -- test send email linux הבדיקה שלח Linux - -- linux mail command from Linux מייל הפקודה - -- linux send email Linux שלח - -- mail command linux דואר פקודה Linux - -- sending mail from linux שליחת דואר מ-Linux - -- anonymous email linux אנונימי דוא"ל Linux - -- how to use mail in linux כיצד להשתמש ב-Linux מייל - -- linux command line email בלינוקס בשורת פקודה דוא"ל - -- mail command in linux מייל הפקודה ב-Linux - -- mail command linux example הפקודה בדוגמה דואר Linux - -- sendmail command line send email שורת הפקודה sendmail לשליחת דוא"ל - -- test email linux בדיקת דוא"ל Linux - -- linux commandline mail - -- linux send email commandline Linux שלח CommandLine - -- send command line email שורת הפקודה שלח דוא"ל - -- how to send mail on command line כיצד לשלוח דואר על שורת הפקודה - -- send mail with mail command שלח דואר אלקטרוני עם הפקודה - -- how to use linux mail command כיצד להשתמש ב-Linux מייל פקודה - -- linux mail commands Linux מייל פקודות - --