telnet mail

 telnet mail

[root@station2 ~]# telnet station2.example.com 25

Trying 127.0.0.1...

Connected to localhost.localdomain (127.0.0.1).

Escape character is '^]'.

220 station2.example.com ESMTP Postfix

HELO station2.example.com                  #开始进行通讯

mail from: [email protected]  #通知邮件来源

250 2.1.0 Ok

rcpt to: [email protected]    #邮件目的地址

250 2.1.5 Ok

data                                       #邮件内容

354 End data with <CR><LF>.<CR><LF>

from:guest2001           #from:是发信人的标志

to:guest2002             #to:是收信人的标志

date:3/29/2011           #date:发信日期

subject:Hello,guest2002  #subject:信的主题;

Hello,guest2002

  I am guest2001!

       Yours Friend!^H

       Guest2001!

.                       #输入.,再按回车,结束邮件内容编辑

250 2.0.0 Ok: queued as 9E8BB5555E6

quit                   #退出并发送邮件

221 2.0.0 Bye

Connection closed by foreign host.

 

你可能感兴趣的:(职场,telnet,mail,休闲)