How to Send an Email (Mail Message) from Linux Command Line Shell Jak wysłać e-mail (Wyślij wiadomość) z linii poleceń powłoki systemu Linux

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. Czasami administrator systemu może być konieczne, aby wysłać wiadomość testową lub poczty prawo nadzwyczajnych wiadomości z powłoki lub interpretera wiersza poleceń, jeżeli śpią na smak Linux lub dystrybucja systemu operacyjnego, należy Red Hat Fedora, Ubuntu, Debian, CentOS, Open SUSE, FreeBSD oraz innych. In this case, the mail command will come in handy. W tym przypadku polecenie mail będzie przydatna.

mail is a command to send and receive mail in Unix, Linux and BSD operating system. mail polecenia, aby wysłać i odbierać pocztę w systemie Unix, Linux i BSD systemu operacyjnego. To initiate a mail sending process, just type in the following command: Aby rozpocząć proces wysyłania poczty, po prostu wpisz następujące polecenie:

mail recipient@domain.com

Obviously, replace recipient@domain.com with a valid email address. Oczywiście, zamiast recipient@domain.com prawidłowy adres e-mail.

The system will prompt for a subject of the email before allowing user to type in the mail message body. System wyświetli monit o podanie tematu wiadomości e-mail przed pozwalając użytkownik wobec typ w treści wiadomości email.

# mail receipent@domain.com # Receipent@domain.com mail
Subject: For Testing Only Temat: jedynie do testowania
This email is for testing the mail delivery system only. Ten e-mail do testowania systemu dostarczania poczty tylko.
^D (EOT) ^ D (EOT)
Cc: DW:

Once finished typing the email message, press Ctrl-D (shown as ^D in example above), which represents End of Text (EOT). Po zakończeniu pisania wiadomości e-mail, naciśnij Ctrl-D (^ D, jak pokazano w powyższym przykładzie), co stanowi końca tekstu (EOT). Depending on system, mail may or may not prompt another input request for any recipients to cc (carbon copy) to. W zależności od systemu, poczty lub nie może skłonić kolejne żądanie wejścia dla każdego odbiorcy do cc (kopia) do. Press Enter to skip or accept the input, and get the mail sent. Naciśnij klawisz Enter, aby pominąć i przyjąć wejście i uzyskać mail została wysłana.

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. Wskazówka: Jeśli nadawca i odbiorca jest na tym samym systemie, to nic nie można pominąć domeny (@ domain.com) część adresu, a jedynie nazwę użytkownika.

It's also possible to use mail's arguments or switches to directly send mail without interactive input. Możliwe jest również do korzystania z poczty argumenty lub przełącza się bezpośrednio wysyłać pocztę bez interaktywne wejściowych. For example, Na przykład,

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". Dowództwo nad natychmiast wysłać pusty e-mail z pustymi ciała adres odbiorcy z tematem "Test". For more arguments, type "man mail". Aby uzyskać więcej argumentów typu "poczta człowieka".

IMPORTANT : The page is machine translated and provided "as is" without warranty. UWAGA: strona jest maszyna przetłumaczony i dostarczane "tak jak są" bez gwarancji. Machine translation may be difficult to understand. Tłumaczenie maszynowe może być trudne do zrozumienia. Please refer to Proszę odnieść się do original English article oryginalny angielski artykułu whenever possible. w miarę możliwości.


3 Responses to “How to Send an Email (Mail Message) from Linux Command Line Shell” 3 Odzewy wobec "jak wysłać e-mail (Wyślij wiadomość) z linii poleceń powłoki systemu Linux"

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

    how do i config my sendmail to make it work? Jak config mojego sendmail, aby to działało? i have ubuntu and it wont work without it. mam ubuntu i przyzwyczajenie praca bez niego.
    thanks! dzięki!

  2. tim tim
    June 29th, 2009 00:24 29 czerwca 2009 00:24
    2 2

    you have to config your sendmail to make it work masz plik konfiguracyjny do sendmaila, aby to działało

  3. 908 908
    June 28th, 2009 11:53 28 czerwca 2009 11:53
    1 1

    Argh. Ojej. It's a Terminal not a commandline. It's Terminal nie polecenia.

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> Możesz używać tych skuwki: href="" title=""> <abbr title=""> <acronym <b> <blockquote zacytować=""> <cite> <code> <del datetime = ""> <em> <<q zacytować=""> <strike> <strong>

Subscribe to comments feature has been disabled. Subskrybuj komentarze funkcja została wyłączona. To receive notification of latest comments posted, subscribe to Aby otrzymywać powiadomienia o najnowszych komentarze opublikowane, zapisz się My Digital Life Comments RSS feed Mój Cyfrowy Życie Comments RSS or lub register to receive zarejestrować, aby otrzymać new comments in daily email digest. nowe komentarze przesłać wiadomość pocztą elektroniczną.
Custom Search

New Articles Nowe artykuły

Incoming Search Terms for the Article Dochód Zrewidować Stosunki pod kątem ten Przedmiot

linux mail command Linux polecenia mail - -- sendmail command line sendmail linii poleceń - -- sendmail command line example sendmail przykład polecenia - -- send mail from command line wysyłanie poczty z wiersza poleceń - -- linux mail command line Linux polecenia mail - -- sendmail command example sendmail przykład polecenie - -- linux mail from address linux mail z adresu - -- mail command in linux Polecenie mail w Linuksie - -- linux command line mail linux mail linii poleceń - -- linux mail command example Linux przykład polecenie mail - -- send mail command line linux wyślij mail linii poleceń Linuksa - -- command line email linux linii poleceń Linuksa e-mail - -- linux send mail from command line Linux wysyłanie poczty z wiersza poleceń - -- send mail from command line linux wysyłanie poczty z wiersza poleceń systemu Linux - -- linux send email Linux wyślij e-mail - -- mail command linux Linux polecenia mail - -- send email from command line wyślij e-mail z poziomu linii poleceń - -- sendmail command line subject sendmail temat wiersza poleceń - -- sendmail example command line sendmail linii poleceń np. - -- linux sendmail example Linux przykład sendmail - -- linux send email from command line Linux wyślij e-mail z poziomu linii poleceń - -- linux email command line linux e-mail z linii poleceń - -- linux mail command from Linux polecenia mail - -- how to send mail in linux Jak wysłać pocztę w systemie Linux - -- linux sendmail command Linux polecenia sendmail - -- email command line e-mail z linii poleceń - -- all wszyscy - -- mail linux command polecenia linux mail - -- linux command line email linux e-mail z linii poleceń - -- sendmail command in linux sendmail polecenia w Linuksie - -- linux email command Linux polecenia e-mail - -- linux mail command from address Linux polecenia mail z adresu - -- linux sendmail command line Linux sendmail linii poleceń - -- how to send mail from linux command line Jak wysłać pocztę z linii poleceń Linuksa - -- linux sendmail command example Linux sendmail przykład polecenie - -- man mail linux Linux Mail człowieka - -- sendmail command line email sendmail e-mail z linii poleceń - -- send email command line linux wyślij e-mail z linii poleceń Linuksa - -- shell mail command powłoki poleceń mail - -- sendmail send test email sendmail wysłać wiadomość testową - -- yahoo mail command line Yahoo linii poleceń mail - -- linux send email command line Linux wyślij e-mail z linii poleceń - -- sendmail linux example sendmail np. linux - -- sending mail from command line wysyłanie poczty z poziomu linii poleceń - -- linux commandline mail linux mail poleceń - -- send command line email wyślij e-mail z linii poleceń - -- linux send mail command line Linux wysyła polecenia mail - -- send email from linux command line wyślij e-mail z linii poleceń Linuksa - -- mail linux command line linux mail linii poleceń - -- how to send email in linux Jak wysłać wiadomość e-linux - --