信箱不可用。服务器响应为:5.7.1无法中继的abc@gmail.com [英] Mailbox unavailable. The server response was: 5.7.1 Unable to relay for abc@gmail.com

查看:7822
本文介绍了信箱不可用。服务器响应为:5.7.1无法中继的abc@gmail.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是低于code;
其中以下几点可能是错误的原因,但我不知道;

1,该应用程序是开发机器上
2在SMTP IP的同时应用程序是在本地主机上运行的服务器上托管

我得到这个错误邮箱不可用服务器响应为:5.7.1无法中继的mhtbusoum@gmail.com;

 昏暗的消息作为MAILMESSAGE新
 message.From =新MailAddress(Strings.LCase(mhtbusoum@mysite.com))
 message.To.Add(mhtbusoum@gmail.com)
 message.IsBodyHtml = TRUE
 message.Priority = MailPriority.Normal
 message.Subject =(测试SmtpClient电子邮件发送)
 message.Body =(这是测试电子邮件发送无需任何密码)
 昏暗的客户端作为新SmtpClient(mailSending.actualSite.com,25)
 client.UseDefaultCredentials =假
 client.Send(消息)


解决方案

在使用本地主机邮件服务器,该服务器将阻止未在本地主机托管的任何电子邮件地址。

要转发来自其他服务器的另一E-mail地址,您需要将IIS服务器配置授予的权限。

请参阅这个帖子的配置中继权限。

I am using the below code; One of the following points could be the reason of the error, but I don't know;

1-The application is on development machine 2-The smtp ip is hosted on the server while app is running on localhost

I am getting this error "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for mhtbusoum@gmail.com";

 Dim message As New MailMessage
 message.From = New MailAddress(Strings.LCase("mhtbusoum@mysite.com"))
 message.To.Add("mhtbusoum@gmail.com")
 message.IsBodyHtml = True
 message.Priority = MailPriority.Normal
 message.Subject = ("Testing SmtpClient email sending")
 message.Body = ("It is to test the email sending without any password")
 Dim client As New SmtpClient("mailSending.actualSite.com", 25)
 client.UseDefaultCredentials = False
 client.Send(message)

解决方案

When using localhost as mail server, the server will block any e-mail address that is not hosted in localhost.

To relay another e-mail address from other server, you will need to configure the IIS Server to grant the permission.

See this post for configure the relay permissions.

这篇关于信箱不可用。服务器响应为:5.7.1无法中继的abc@gmail.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆