How to Send an Email (Mail Message) from Linux Command Line Shell Kako Pošaljite Email (pošte) iz naredbenog retka Linux 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. Povremeno sistem administratora svibanj trebate poslati testnu poruku e-pošte, ili hitne mail poruku desno od granata ili command line interpreter kada koristite Linux okus ili distribucije operacijskog sustava, biti Red Hat Fedora, Ubuntu, Debian, CentOS, Open SuSE, FreeBSD i drugima. In this case, the mail command will come in handy. U ovom slučaju, mailom naredba će doista doći u ruci.

mail is a command to send and receive mail in Unix, Linux and BSD operating system. mail je naredbu za slanje i primanje pošte na Unix, Linux i BSD operacijskim sustavom. To initiate a mail sending process, just type in the following command: Da bi započeli proces slanja pošte, samo utipkajte sljedeću naredbu:

mail recipient@domain.com

Obviously, replace recipient@domain.com with a valid email address. Očito, s recipient@domain.com zamijeniti valjanu adresu e-pošte.

The system will prompt for a subject of the email before allowing user to type in the mail message body. Sustav će prompt za predmet poruke e-pošte prije nego što dopušta korisniku da tip u mail poruku tijela.

# mail receipent@domain.com # Mail receipent@domain.com
Subject: For Testing Only Tema: Samo za testiranje
This email is for testing the mail delivery system only. Ova poruka e-pošte za testiranje mail samo sustav za isporuku.
^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). Nakon što završite tipkati poruke e-pošte, pritisnite Ctrl-D (^ D kao što je prikazano u primjeru gore), koja predstavlja Kraj Text (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. Ovisno o sustavu, svibanj mail ili svibanj ne drugom retku ulazne zahtjev za bilo primatelji cc (carbon copy) u. Press Enter to skip or accept the input, and get the mail sent. Pritisnite Enter da biste preskočili ili prihvatiti ulazni i dobiti poštom poslana.

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. Savjet: Ako se pošiljatelj i primatelj je na isti sistem, to je moguće izostaviti domenu (@ domain.com) dio je adresu, ostavljajući samo korisničko ime.

It's also possible to use mail's arguments or switches to directly send mail without interactive input. Također je moguće koristiti mail-a ili argumente prekidači za izravno slanje pošte bez interaktivni unos. For example, Na primjer,

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". Naredba gore će odmah poslati prazan e-pošte s praznim tijelo adresa primatelja s predmetom "test". For more arguments, type "man mail". Za više argumenata, tipa "čovjek mail".

IMPORTANT : The page is machine translated and provided "as is" without warranty. VAŽNO: Na stranici je stroj prevedeno i dostavlja "kakav je" sa garantni. Machine translation may be difficult to understand. Strojno prevođenje svibanj biti teško za razumjeti. Please refer to Molimo pogledajte original English article Engleski originalni članak whenever possible. kad god je to moguće.


2 Responses to “How to Send an Email (Mail Message) from Linux Command Line Shell” 2 Reakcija to "Kako Pošaljite Email (pošte) iz naredbenog retka Linux Shell"

  1. tim Tim
    June 29th, 2009 00:24 29 lip 2009 00:24
    2 2

    you have to config your sendmail to make it work morate konfiguracijski vaš sendmail to izraditi Internet funkcionirati

  2. 908 908
    June 28th, 2009 11:53 28 lip 2009 11:53
    1 1

    Argh. Ah. It's a Terminal not a commandline. It's Terminal ne commandline.

Leave a Reply Dopust Odgovor

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> Možete koristiti te tags: <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. Pretplatite se na komentare značajka je onemogućen. To receive notification of latest comments posted, subscribe to Da biste primali obavijesti o najnovijim comment posted, pretplatite se My Digital Life Comments RSS feed My Digital Life Komentari RSS or ili register to receive prijaviti za primanje new comments in daily email digest. nove komentare na e-poruke dnevno svariti.
Custom Search

New Articles Novi članci

Incoming Search Terms for the Article Dolazni Traži Uvjeti za Članak

linux mail command linux naredbu mail - -- sendmail command line sendmail naredbenog retka - -- linux send mail from command line linux slati poštu iz komandne linije - -- linux send email command line pošaljite e-mail Linux naredbeni redak - -- send mail from command line linux slati poštu iz komandne linije linux - -- command line email linux redak naredbe pošaljite na e-linux - -- email from linux command line e-Linux naredbeni redak - -- sendmail command line email sendmail naredbeni redak e-pošte - -- sending mail from command line slati poštu iz komandne linije - -- yahoo hotmail Yahoo Hotmail - -- linux command line mail command linux komandne linije komandom mail - -- sendmail command example in linux with subject and body sendmail naredbu primjer u Linux s predmetom i tijela - -- how to send an email kako poslati e-mail - -- linux send email from command line linux poslati poruku e-pošte iz komandne linije - -- test email address send message test e-mail adresu pošalji poruku - -- mail command in shell mail naredbu u shell - -- send mail from command line slati poštu iz komandne linije - -- send yahoo mail from command line Yahoo slati poštu iz komandne linije - -- how to send mail from linux command line Kako poslati mail sa Linux naredbeni redak - -- linux cli mail linux CLI mail - -- linux mail command line linux mail naredbenog retka - -- email sending in command line slanje e-pošte u naredbenom retku - -- linux sendmail command example linux naredbu sendmail primjer - -- sendmail command line example sendmail naredbeni redak primer - -- test send email linux test pošaljite e-mail linux - -- linux mail command from linux naredbu iz pošte - -- linux send email linux pošaljite e-mail - -- how to use mail in linux kako koristiti mail linux - -- "mail -s" + linux + 2 recipients addresss "mail-s" + Linux + 2 primatelja addresss - -- command to send message from LINUX pc naredba za slanje poruke od LINUX PC - -- debian howto send mail shell Debian HOWTO pošaljite mail školjka - -- debial send mail from command line debial slati poštu iz komandne linije - -- example of mail command in linux Primjer mail naredbu u linux - -- getting my linux pc to send email uzimajući moj pc linux za slanje e-pošte - -- how to send a mail in linux example Kako poslati mail u linux primjer - -- How to Check sendmail Kako to Ček sendmail - -- linux mail command recipients linux naredbu mail primatelja - -- linux command line send Linux naredbeni redak pošalji - -- linux command line mail Linux naredbeni redak mail - -- mail linux commandline from mail linux commandline iz - -- mail command depends on operating system mail naredba ovisi o operacijskom sustavu - -- send test email from linux console mail command test pošalji e-mail Linux console naredba - -- sending mail from linux terminal slati poštu iz linux terminal - -- test mail domain linux test mail domena linux - -- test send mail command line test pošaljite mail komandne linije - -- which linux mail command koji linux naredbu mail - -- anonymous email anonimni e-pošte - -- bsd mail howto send BSD mail poslati howto - -- commandline email linux commandline linux e-pošte - -- debian send mail from shell debian slati poštu iz ljuske - --