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
...全文
302 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
鱼雷 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没一点作用

13,347

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 .NET技术前瞻
社区管理员
  • .NET技术前瞻社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧