相对应的,你要发送邮件给谁,就要设置相应的域名,不设置的时候邮件是发送不出去的。 2。 右键单击 163.com 等域名,选 “属性” ,勾上 “Allow incoming mail to be relayed to this domain”,勾上后邮件才能发送出去,否则还是有错。 下面的 Route domain 选默认的 Use DNS to route to domain 就可以了。
在 Windows xp+ visual sutdio 2003 + iis5.1 环境下测试通过, 不过只有发现发送到新浪邮箱的信件收不到,不知道为什么。
出现 SMTP典型错误 550 5 7 1 Uable to relay 则除了domains 域名没有设置好还有可能是 SMTP虚拟服务器的设置中没有选中“allow computers which successfully authenticate to relay”复选框。如下所示, 先打开SMTP Virtual Server的属性页的access页: 然后点击“Relay”按钮,看“Allow all computers which successfully authenticate to relay,regardless of the list above”是否选中: