Azure网站:服务器响应为:5.7.1无法中继错误

时间:2014-12-02 20:36:13

标签: azure exchange-server

我有一个Azure网站,我想从这个网站发送电子邮件。我正在使用我的内部部署交换服务器(它有一个公共IP):

SmtpClient smtp = new SmtpClient
{
    Host = "myserver.com",
    Port = 25,
    UseDefaultCredentials = false,
    Credentials = new NetworkCredential("myemail@myserver.com", "mypassword"),
    DeliveryMethod = SmtpDeliveryMethod.Network
};

smtp.send函数失败,并显示以下错误消息:The server response was: 5.7.1 Unable to relay错误

0 个答案:

没有答案