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. ככל שניתן.
Related Articles מאמרים קשורים
- Send an Anonymous Email Message With Web Based Anonymous Mail Service Providers שלח הודעת דואר אלקטרוני אנונימי מבוססי אינטרנט ספקי שירות דואר אנונימי
- Windows Media Center Shell (ehshell.exe) Command Line Switches and Options מעטפת של Windows Media Center (ehshell.exe) בוררי שורת הפקודה ואפשרויות
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail) עיכוב של שליחת הודעת דואר אלקטרוני ב-Microsoft Outlook (תמיכה ב-Gmail, Hotmail, Yahoo, AOL, וכל POP3/IMAP דואר)
- Send Free Text Message With Hundreds of Email to SMS Gateway or Internet Web SMS from Operator שלח הודעת טקסט חופשי עם מאות דוא"ל של Gateway ל-SMS או האינטרנט אינטרנט מפעיל מ-SMS
- How to Create Email Account and Receive Mail for Abuse and Postmaster in Google Apps כיצד ליצור חשבון דוא"ל וקבל דואר עבור התעללות ואת מנהל הדואר ב-Google Apps
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut הפעלה מחדש או כיבוי של Windows (XP, 2000 and Vista) מתוך שורת הפקודה, או בלחיצה אחת קיצור דרך
- Remove ESET NOD32 Checked Email Confirmation Tag Message in Email הסר ESET NOD32 מסומנים אימייל אישור תג הודעת דואר אלקטרוני
- Email Bounces Back with “unrouteable mail domain” Error אימייל חזר חזרה עם "unrouteable מייל התחום" שגיאה
- Yahoo Mail New Feature to Allow E-Mailers Text-Message to Phones Yahoo Mail תכונה חדשה ל-אי אפשר הדיוורים טקסט הודעת טלפונים
- Unlimited Email Storage and Infinity Mail Space for Yahoo! Unlimited אחסון דואר אלקטרוני ו Infinity דואר שטח עבור Yahoo! Mail דואר










































June 29th, 2009 00:24 יוני 29, 2009 00:24
you have to config your sendmail to make it work אתה צריך את sendmail config כדי לגרום לזה לעבוד
June 28th, 2009 11:53 יוני 28, 2009 11:53
Argh. Argh. It's a Terminal not a commandline. זה לא של Terminal CommandLine.