net 发送邮件 问题

u010220538 2013-05-15 01:35:52
用 System.Web.Mail.MailMessage
SmtpMail.SmtpServer = "smtp.ym.163.com";

做的net发送邮件功能,
为什么只能发送方和接收方都是公司的邮箱,换成163的邮箱就不可以了。
我换成163的邮箱来接收,就报错了:如下

报错:
服务器拒绝了一个或多个收件人地址。服务器响应为: 501 5.1.3 Bad recipient address syntax
...全文
243 点赞 收藏 9
写回复
9 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
鱼雷 2013-05-15
7楼好经典的翻译....
回复
u010220538 2013-05-15
引用 7 楼 rcom10002 的回复:
把wangda@163.com改成<wangda@163.com>试试
还是报同样的错误呢
回复
rcom10002 2013-05-15
把wangda@163.com改成<wangda@163.com>试试
回复
u010220538 2013-05-15
引用 5 楼 rcom10002 的回复:
If you find that you are receiving 5.1.x errors while trying to send SMTP emails it may be that your mail server has either the parameter strict_rfc821_envelopes = yes or adheres strictly to the ESMTP (RFC 5321) protocols which require email addresses to be enclosed in < > as in "John Doe <jd...@email.com>". Sendmail allows plain email addresses so you might find this error if you migrate from a sendmail mailserver to a postfix (or other server). The Email Component does not currently enclose the addresses in < > but does use them if they are present in the string that is passed in. Hope this helps somebody out there before they spend as much time on the error as I did. For sake of conventions (and adhering to the RFC), should the email component format email address strings with the enclosing < > by default?
哥们儿,能帮我翻译成中文么
回复
rcom10002 2013-05-15
If you find that you are receiving 5.1.x errors while trying to send SMTP emails it may be that your mail server has either the parameter strict_rfc821_envelopes = yes or adheres strictly to the ESMTP (RFC 5321) protocols which require email addresses to be enclosed in < > as in "John Doe <jd...@email.com>". Sendmail allows plain email addresses so you might find this error if you migrate from a sendmail mailserver to a postfix (or other server). The Email Component does not currently enclose the addresses in < > but does use them if they are present in the string that is passed in. Hope this helps somebody out there before they spend as much time on the error as I did. For sake of conventions (and adhering to the RFC), should the email component format email address strings with the enclosing < > by default?
回复
u010220538 2013-05-15
引用 2 楼 rcom10002 的回复:
告诉你收件人地址有错误
可是我没写错啊,邮件地址没错啊,地址是这样写的: string to2 = "wangda@163.com" 这个邮箱能正常使用啊
回复
King之主 2013-05-15
呵呵,确实是这样的,拒绝多个人好说,一个人也拒绝,那么肯定是你的IP写错了!
回复
rcom10002 2013-05-15
告诉你收件人地址有错误
回复
u010220538 2013-05-15
没一个人回 哎 csdn没一点作用
回复
相关推荐
发帖
.NET技术前瞻
创建于2007-09-28

1.3w+

社区成员

.NET技术 .NET技术前瞻
申请成为版主
帖子事件
创建了帖子
2013-05-15 01:35
社区公告
暂无公告