How to Send an Email (Mail Message) from Linux Command Line Shell Kaip Siųsti paštas (Mail Message) iš 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. Kartais sistemos administratorius gali prireikti išsiųsti testinį el.laišką, arba ekstremalių situacijų laišką tiesiai iš apvalkalo arba komandinės eilutės interpretatorius naudojant Linux skonio arba platinti operacinę sistemą, bus "Red Hat Fedora, Ubuntu, Debian, CentOS, Open SUSE, FreeBSD ir kt. In this case, the mail command will come in handy. Tokiu atveju paštas komandą bus naudinga.

mail is a command to send and receive mail in Unix, Linux and BSD operating system. paštas komandą Siųsti ir gauti paštą Unix, Linux, BSD operacine sistema. To initiate a mail sending process, just type in the following command: Pradėti pašto siuntimo procesas, tiesiog įrašykite šią komandą:

mail recipient@domain.com

Obviously, replace recipient@domain.com with a valid email address. Žinoma, pakeisti recipient@domain.com su elektroninio pašto adresą.

The system will prompt for a subject of the email before allowing user to type in the mail message body. Sistema bus greitai už elektroninio pašto, kuriems, prieš leidžiant vartotojui tipą laišką įstaiga.

# mail receipent@domain.com # Paštas receipent@domain.com
Subject: For Testing Only Tema: Dėl bandymų tik
This email is for testing the mail delivery system only. Šis laiškas yra bandymas laiškų pristatymo sistemą tik.
^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). Kai baigė rašyti laišką, paspauskite "Ctrl-D (rodoma kaip ^ D į aukščiau pateiktą pavyzdį), kurį sudaro teksto pabaiga (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. Priklausomai nuo sistemos, paštas gali ar negali greitai įvesti kitą prašymą gavėjus į CC (kopija) iki. Press Enter to skip or accept the input, and get the mail sent. Paspauskite klavišą Enter, jei norite praleisti arba pritarti pirkimo ir gauti paštu išsiųsti.

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. Patarimas: Jei siuntėjas ir gavėjas yra ta pati sistema, tai galima praleisti domeną (@ domain.com) dalis adresą, paliekant tik vartotojo vardą.

It's also possible to use mail's arguments or switches to directly send mail without interactive input. Taip pat galima naudoti paštas argumentai arba jungikliai tiesiogiai siųsti laiškus be interneto įvedimo. For example, Pavyzdžiui

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". Komanda aukščiau bus nedelsiant išsiųsti tuščią laišką su tuščiu Kūno prie gavėjo adresą su tema "test". For more arguments, type "man mail". Norėdami gauti daugiau argumentų, tipo "vyras paštas".

IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.


3 Responses to “How to Send an Email (Mail Message) from Linux Command Line Shell” 3 Responses to "Kaip Siųsti paštas (Mail Message) iš Linux Command Line" Shell "

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

    how do i config my sendmail to make it work? Kaip sendmail config mano, kad jis veikia? i have ubuntu and it wont work without it. Turiu ubuntu, ir jis įpratęs dirbti be jo.
    thanks! ačiū!

  2. tim Tim
    June 29th, 2009 00:24 29 birželis 2009 00:24
    2 2

    you have to config your sendmail to make it work turite config jūsų sendmail, kad ji būtų

  3. 908 908
    June 28th, 2009 11:53 28 birželis 2009 11:53
    1 1

    Argh. Oi. It's a Terminal not a commandline. Jis terminalo ne komandųeilutės.

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> Galite naudoti šiuos žodžius: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subscribe to comments funkcija buvo išjungta. To receive notification of latest comments posted, subscribe to Norėdami gauti pranešimus apie naujausius komentarų, užsiprenumeruoti My Digital Life Comments RSS feed Mano skaitmeninis gyvenimas Komentarų RSS or arba register to receive Registruokitės gauti new comments in daily email digest. Nauji komentarai kasdien elektroniniu paštu.
Custom Search

New Articles Nauji straipsniai

Incoming Search Terms for the Article Gaunamus paieškos terminus straipsnis

linux mail command Linux paštas komanda - -- sendmail command line sendmail komandą - -- sendmail command line example sendmail komandų eilutės pavyzdys - -- send mail from command line siųsti paštą iš komandinės eilutės - -- linux mail command line paštas Linux komandinės eilutės - -- sendmail command example sendmail komandą pavyzdys - -- linux mail from address Linux paštu adresu - -- mail command in linux paštas komandą Linux - -- linux command line mail "Linux" komandinę eilutę paštas - -- linux mail command example Linux Mail komandos pavyzdys - -- send mail command line linux siųsti laišką komandinės eilutės Linux - -- command line email linux Komandų eilutė el Linux - -- linux send mail from command line Linux siųsti laiškus iš komandinės eilutės - -- send mail from command line linux siųsti paštą iš komandų eilutės Linux - -- linux send email Linux Siųsti laišką - -- mail command linux paštas komandą Linux - -- send email from command line Siųsti laišką iš komandinės eilutės - -- sendmail command line subject sendmail komandą tema - -- sendmail example command line Pavyzdžiui sendmail komandą - -- linux sendmail example Linux sendmail pavyzdys - -- linux send email from command line Linux siųsti laiškus iš komandinės eilutės - -- linux email command line "Linux" komandinę eilutę laišką - -- linux mail command from Linux paštas komandą - -- how to send mail in linux Kaip siųsti laiškus Linux - -- linux sendmail command Linux sendmail komandą - -- email command line pašto komandą - -- all visi - -- mail linux command paštas Linux komandos - -- linux command line email "Linux" komandinę eilutę laišką - -- sendmail command in linux sendmail komandą Linux - -- linux email command Linux laišką komandą - -- linux mail command from address Linux Mail komandą adresas - -- linux sendmail command line Linux sendmail komandą - -- how to send mail from linux command line Kaip siųsti laiškus iš "Linux" komandinę eilutę - -- linux sendmail command example Linux sendmail komandą pavyzdys - -- man mail linux vyras paštas Linux - -- sendmail command line email sendmail komandą laišką - -- send email command line linux Siųsti el komandų eilutės Linux - -- shell mail command shell paštas komanda - -- sendmail send test email sendmail bandymas siųsti laišką - -- yahoo mail command line Yahoo komandą - -- linux send email command line Linux Siųsti laišką komandinės eilutės - -- sendmail linux example sendmail Linux pavyzdys - -- sending mail from command line siųsti paštą iš komandinės eilutės - -- linux commandline mail Linux komandųeilutės paštas - -- send command line email Siųsti el komandinę eilutę - -- linux send mail command line Linux siųsti laiškus komandinės eilutės - -- send email from linux command line Siųsti laišką iš "Linux" komandinę eilutę - -- mail linux command line paštas Linux "komandinę eilutę - -- how to send email in linux Kaip siųsti el Linux - --