<b>telnet mail</b>
[root@station2 ~]# <b>telnet station2.example.com 25</b>
<b></b>
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 station2.example.com ESMTP Postfix
<b>HELO station2.example.com </b>#开始进行通讯
<b>mail from: [email protected] </b>#通知邮件来源
250 2.1.0 Ok
<b>rcpt to: [email protected] </b>#邮件目的地址
250 2.1.5 Ok
<b>data </b>#邮件内容<b></b>
354 End data with <CR><LF>.<CR><LF>
<b>from:guest2001 </b>#from:是发信人的标志<b></b>
<b>to:guest2002 #</b>to:是收信人的标志<b></b>
<b>date:3/29/2011 </b>#date:发信日期
<b>subject:Hello,guest2002 </b>#subject:信的主题;
Hello,guest2002
I am guest2001!
Yours Friend!^H
Guest2001!
<b>. </b>#输入”.”,再按回车,结束邮件内容编辑
250 2.0.0 Ok: queued as 9E8BB5555E6
<b>quit </b>#退出并发送邮件
221 2.0.0 Bye
Connection closed by foreign host.
本文转自netsword 51CTO博客,原文链接:http://blog.51cto.com/netsword/529305