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é.


3 Responses to “How to Send an Email (Mail Message) from Linux Command Line Shell” 3 Reakcie na "Ako zaslať e-mail (e-mail Message) z Linux Command Line Shell"

  1. maria a. Maria A.
    July 29th, 2009 06:48 29.července 2009 06:48
    3 3

    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!

  2. tim tim
    June 29th, 2009 00:24 29.Jún 2009 00:24
    2 2

    you have to config your sendmail to make it work musíte si config sendmail, aby fungovala

  3. 908 908
    June 28th, 2009 11:53 28.Jún 2009 11:53
    1 1

    Argh. Argh. It's a Terminal not a commandline. To nie je Terminal príkazového riadku.

Leave a Reply 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> Môžete použiť tieto značky: href = "" <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Prihlásiť sa k pripomienkam funkcia bola zakázaná. To receive notification of latest comments posted, subscribe to Ak chcete dostávať oznámenia o najnovšie komentáre vyslaný, prihláste sa My Digital Life Comments RSS feed Má Digital Life Komentáre RSS or alebo register to receive zaregistrovať na new comments in daily email digest. nové komentáre v dennom email Digest.
Custom Search

New Articles Nové články

Incoming Search Terms for the Article Vcházející Hľadať Čas do člen určitý Artikel

linux mail command linux mail príkazu - -- sendmail command line sendmail command line - -- sendmail command line example sendmail command line príklad - -- send mail from command line poslat mail z príkazového riadku - -- linux mail command line linux mail z príkazového riadku - -- sendmail command example Napríklad príkaz sendmail - -- linux mail from address linux mail z adresy - -- mail command in linux mail velenie v linux - -- linux command line mail linux command line mail - -- linux mail command example linux mail napríklad príkaz - -- send mail command line linux poslať e-mail z príkazového riadku linux - -- command line email linux command line email linux - -- linux send mail from command line linux poslat mail z príkazového riadku - -- send mail from command line linux poslat mail z príkazového riadku linux - -- linux send email linux poslať e-mailom - -- mail command linux Príkaz mail linux - -- send email from command line poslať e-mail z príkazového riadku - -- sendmail command line subject sendmail command line predmet - -- sendmail example command line sendmail napríklad z príkazového riadku - -- linux sendmail example linux sendmail príklad - -- linux send email from command line linux poslať e-mail z príkazového riadku - -- linux email command line linux e-mail z príkazového riadku - -- linux mail command from linux mail z príkazového - -- how to send mail in linux ako poslat mail v linux - -- linux sendmail command linux sendmail príkaz - -- email command line e-mail z príkazového riadku - -- all všetko - -- mail linux command Príkaz mail linux - -- linux command line email linux command line email - -- sendmail command in linux sendmail velenie v linux - -- linux email command linux e-mailu príkazom - -- linux mail command from address linux mailovej adresy z príkazu - -- linux sendmail command line linux sendmail command line - -- how to send mail from linux command line ako poslat mail z príkazového riadku linux - -- linux sendmail command example linux sendmail napríklad príkaz - -- man mail linux Muž mail linux - -- sendmail command line email sendmail command line email - -- send email command line linux poslať e-mail z príkazového riadku linux - -- shell mail command shell príkaz mail - -- sendmail send test email sendmail poslať skúšobné e-mail - -- yahoo mail command line Yahoo mail z príkazového riadku - -- linux send email command line linux poslať e-mail z príkazového riadku - -- sendmail linux example sendmail linux príklad - -- sending mail from command line odosielanie pošty z príkazového riadku - -- linux commandline mail linux commandline mail - -- send command line email poslať e-mail z príkazového riadku - -- linux send mail command line linux poslat mail z príkazového riadku - -- send email from linux command line poslať e-mail z príkazového riadku linux - -- mail linux command line linux mail z príkazového riadku - -- how to send email in linux ako poslať e-mail v linux - --