How to Send an Email (Mail Message) from Linux Command Line Shell Ako poslať e-mail (e-mail Message) z 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. Občas sa na správcu systému môže byť nutné zaslať skúšobné e-mail alebo núdzové mailové správy priamo z príkazového riadku shellu alebo pomocou tlmočníka príchuť Linux alebo distribúciu operačného systému, je Red Hat Fedora, Ubuntu, Debian, CentOS, Open SUSE, FreeBSD a ostatné. In this case, the mail command will come in handy. V tomto prípade bude poštou príkaz hodiť.
mail is a command to send and receive mail in Unix, Linux and BSD operating system. pošta je príkaz pre odosielanie a prijímanie e-mailov v Unixu, Linuxu a BSD operačný systém. To initiate a mail sending process, just type in the following command: Ak chcete začať proces odosielanie pošty, zadajte nasledujúci príkaz:
mail recipient@domain.com
Obviously, replace recipient@domain.com with a valid email address. Je zrejmé, nahradí recipient@domain.com s platnú e-mailovú adresu.
The system will prompt for a subject of the email before allowing user to type in the mail message body. Systém vás vyzve k predmetu e-mailu predtým, ako umožňuje užívateľovi zadať v tele mailu.
# mail receipent@domain.com # Mail receipent@domain.com
Subject: For Testing Only Predmet: Pre testovanie Only
This email is for testing the mail delivery system only. Tento email je pre testovanie systému len doručovanie pošty.
^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). Po dokončení písanie e-mailovú správu, stlačte Ctrl-D (^ D ako je uvedené v príklade vyššie), čo predstavuje koniec textu (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. V závislosti na systéme môže mailom alebo výzvu nemusia iný vstupný požiadavku na akúkoľvek príjemcom cc (kópia) sa. Press Enter to skip or accept the input, and get the mail sent. Stlačte kláves Enter preskočiť alebo prijať na vstupe, a dostať e-mail poslaný.
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: Ak príjemcu a odosielateľa, je na rovnakom systéme, je možné vynechať domény (@ domain.com) časť adresy, takže len užívateľské meno.
It's also possible to use mail's arguments or switches to directly send mail without interactive input. Je tiež možné používať poštu tvrdenia alebo prepínačov priamo odosielať poštu bez interaktívnych vstupov. For example, Napríklad,
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". Velenie nad okamžite poslať prázdny e-mail s prázdnym telom na adresu príjemcu s predmetom "Test". For more arguments, type "man mail". Pre viac argumenty typu "man mail".
IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: stránka je stroje preložené a za predpokladu, "ako je" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Nájdete na original English article originál Anglicky artikl whenever possible. ak je to možné.
Related Articles Súvisiace články
- Send an Anonymous Email Message With Web Based Anonymous Mail Service Providers Anonym poslať emailovú správu s Web Based Anonym Mail Service Providers
- Windows Media Center Shell (ehshell.exe) Command Line Switches and Options Windows Media Center Shell (ehshell.exe) Prepínače príkazového riadka a vyberte Voľby
- Delay Sending of Email Message in Microsoft Outlook (Supports Gmail, Hotmail, Yahoo, AOL and all POP3/IMAP Mail) Meškanie odosielanie e-mailových správ v programe Microsoft Outlook (podporuje Gmail, Hotmail, Yahoo, AOL a všetky POP3/IMAP Mail)
- Send Free Text Message With Hundreds of Email to SMS Gateway or Internet Web SMS from Operator Bezplatne poslať textovú správu s Stovky Poslať SMS brána alebo Internet Web SMS od operátora
- How to Create Email Account and Receive Mail for Abuse and Postmaster in Google Apps Ako vytvoriť e-mailové konto a prijímanie e-mailov pre zneužívanie a pôšt v Google Apps
- Email Bounces Back with “unrouteable mail domain” Error Odchody email Späť na "unrouteable mailová doména" Dlh
- Remove ESET NOD32 Checked Email Confirmation Tag Message in Email Chod ESET NOD32 zapísanej potvrdzovacieho emailu Tag Poselstvi do E-mail
- Restart or Shutdown Windows (XP, 2000 and Vista) from Command Line or One-Click Shortcut Opakovaný štart či Stiahnuť roletu Okná (XP, 2000 a Vista) z príkazového riadku alebo Jeden-cvaknout Skrátiť
- Unlimited Email Storage and Infinity Mail Space for Yahoo! Neobmedzený email a skladové Infinity Mail Priestor pre Yahoo! Mail Mail
- Yahoo Mail New Feature to Allow E-Mailers Text-Message to Phones Yahoo Mail Nové funkcie Povoliť E-obálky Text-správy na mobilné telefóny










































July 29th, 2009 06:48 29.července 2009 06:48
how do i config my sendmail to make it work? Ako config som sendmail, aby to funguje? i have ubuntu and it wont work without it. Mám ubuntu a je zvyknutý pracovať bez neho.
thanks! vďaka!
June 29th, 2009 00:24 29.Jún 2009 00:24
you have to config your sendmail to make it work musíte si config sendmail, aby fungovala
June 28th, 2009 11:53 28.Jún 2009 11:53
Argh. Argh. It's a Terminal not a commandline. To nie je Terminal príkazového riadku.