用命令行发个邮件玩玩

smtp通讯过程
telnet smtp.126.com 25
>>ehlo mars_621 //helo
<<auth login/plain
>>auth login
<<
>>base64 username--bWE=
<<
>>base64 password--NT==
<<
>>mail from:<[email protected]>
<<
>>rcpt to:<[email protected]>
<<
>>data
from:<[email protected]>
to:xx
subject:test
date:

content!!!
.
<<
>>quit

--------------
本机:
telnet mail.itcast.cn 25

nslookup
set type =mx
sina.com
smtp --- > smtp
telnet smtp

你可能感兴趣的:(命令行)