linux:mail_versandt_telnet
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende Überarbeitung | |||
linux:mail_versandt_telnet [2010/06/29 11:07] – gpipperr | linux:mail_versandt_telnet [2010/06/29 11:10] (aktuell) – gpipperr | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Mails versenden ====== | ||
+ | ===== telnet ===== | ||
+ | |||
+ | |||
+ | - HELO pipperr.de | ||
+ | - MAIL FROM: gunther@mailadress.cn | ||
+ | - RCPT TO: info@mailadress.cn | ||
+ | - DATA | ||
+ | - Den text eingeben und mit einem punkt auf einer linie beenden | ||
+ | - . | ||
+ | - QUIT | ||
+ | |||
+ | <code bash> | ||
+ | # telnet localhost 25 | ||
+ | |||
+ | Trying 127.0.0.1... | ||
+ | Connected to localhost. | ||
+ | Escape character is ' | ||
+ | 220 nciwww01.nci.local ESMTP Postfix (Debian/ | ||
+ | helo pipperr.de | ||
+ | 250 nciwww01.nci.local | ||
+ | MAIL FROM: gunther@mailadress.cn | ||
+ | 250 2.1.0 Ok | ||
+ | RCPT TO: info@mailadress.cn | ||
+ | 250 2.1.5 Ok | ||
+ | DATA | ||
+ | 354 End data with < | ||
+ | Hallo, | ||
+ | Dies ist eine Testmail | ||
+ | . | ||
+ | 250 2.0.0 Ok: queued as 4FBB71A8013 | ||
+ | quit | ||
+ | 221 2.0.0 Bye | ||
+ | Connection closed by foreign host. | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== mail ===== | ||
+ | |||
+ | 1.\\ | ||
+ | <code bash> | ||
+ | mail -s "Hallo Welt" gunther@mailadress.cn | ||
+ | </ | ||
+ | Text eingeben und mit crtl+D beenden\\ | ||
+ | |||
+ | weitere Parameter: | ||
+ | * -s subject (Subject der Mail | ||
+ | * -c email-address (CC) | ||
+ | * -b email-address (BCC) | ||
+ | \\ | ||
+ | |||
+ | Beispiel: | ||
+ | <code bash> | ||
+ | # echo "Dies ist ein Text" | mail -s "Text E-mail" | ||
+ | </ | ||
+ | |||
+ | Absender Adresse setzen: | ||
+ | <code bash> | ||
+ | mail -s "Hallo Welt" gunther@pipperr.de -- -r pipperr@mailadress.cn | ||
+ | </ | ||
+ | |||
+ | ===== Links ===== | ||
+ | |||
+ | http:// |
linux/mail_versandt_telnet.txt · Zuletzt geändert: 2010/06/29 11:10 von gpipperr