在发送邮件时出错 [英] get error in sending mail
本文介绍了在发送邮件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从过去两三天开始,我收到此错误消息,尽管它是在未更改代码的情况下发送邮件.
传输无法连接到服务器
from last two three days i get this error message althoug it was sending mail before no change in code.
The transport failed to connect to the server
推荐答案
您是否尝试 ^ ]?
此错误的可能原因是 Smtp.Mail无法找到您的交换服务器.尝试检查防火墙上是否配置了Exchange Server的端口25.
另外,请先尝试设置
SmtpMail.SmtpServer="localhost";
在开发机器上.它应该工作.
此外,尝试在SmtpServer属性中指定IP地址而不是名称.
The possible cause of this error is Smtp.Mail unable to locate your exchange server. Try checking the firewall for port 25 on which the Exchange server is configured.
Also, first try setting
SmtpMail.SmtpServer="localhost";
on the development machine. It should work.
Further, try specifying IP Address instead of name in SmtpServer property.
这篇关于在发送邮件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文