发送email的错误 550 5.7.1 Unable to relay for
CSDN - 技术社区 - 问题
推荐给朋友 | 关闭窗口
主 题: 有关email的发送问题
作 者: go_now (煅剑)
等 级:
信 誉 分: 100
人 气: 1
所属社区: .NET技术 C#
问题点数: 100
回复次数: 0
发表时间: 2007-5-28 17:33:47
MailMessage email;
email = GenericEmail(EmailType.SendEmail, toUser, null, null, true, toUser.EnableHtmlEmail);
if(email == null)
return;
email.From = GenericEmailFormatter(email.From, fromUser, post);
email.Subject = GenericEmailFormatter(email.Subject, toUser, post);
email.Body = GenericEmailFormatter(email.Body, toUser, post, toUser.EnableHtmlEmail);
//SmtpMail.SmtpServer="smtp.sina.com.cn";
email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "go_now007");
email.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "000000");
SmtpMail.SmtpServer="192.168.0.166";
SmtpMail.Send(email);
当我使用//SmtpMail.SmtpServer="smtp.sina.com.cn";,没有问题,可以发送
但是我用SmtpMail.SmtpServer="192.168.0.166";(我的内网地址)就出现了服务器拒绝了一个或多个收件人地址。服务器响应为: 550 5.7.1 Unable to relay for rrr@163.com的错误
并且当用SmtpMail.SmtpServer="127.0.0.1";时,出现的错误还不一样,
我已经修改的IIS,默认 SMTP 虚拟服务器得中继属性,
请教各位高手原因: