不允许使用邮箱名称。 服务器响应为: Mail from must equal authorized user

不允许使用邮箱名称。 服务器响应为: Mail from must equal authorized user

1、

 Msg.From = New MailAddress("xxx@163.com", "ss", System.Text.Encoding.UTF8)

 

2、SC.Credentials = New System.Net.NetworkCredential("xxx@163.com", "password")

posted @ 2014-01-28 00:19  brian_lee  阅读(5777)  评论(3编辑  收藏  举报