这是一个很有用的小文章可以用来诊断 SMTP服务是否工作
Telnet 到stmp服务器的端口 比如25
telnet abc 25
发送 hello 打招呼
helo 某些服务器需要使用ehlo
开始写邮件
mail From: [email]source@test.com[/email] //指示来源地址
RCPT To: [email]Destination@test.com[/email] // 指示目的地址
Data //指示邮件内容 然后可以开始写邮件了
用一个. 和 ctrl+enter结束
然后 输入 主题
Subject:
最后服务器会告诉你 已经排好队发送了
This is a test message you will not see a response from this command
telnet abc 25
发送 hello 打招呼
helo 某些服务器需要使用ehlo
开始写邮件
mail From: [email]source@test.com[/email] //指示来源地址
RCPT To: [email]Destination@test.com[/email] // 指示目的地址
Data //指示邮件内容 然后可以开始写邮件了
用一个. 和 ctrl+enter结束
然后 输入 主题
Subject:
最后服务器会告诉你 已经排好队发送了
This is a test message you will not see a response from this command
转载于:https://blog.51cto.com/yanchao/79712