GoDaddy的发送电子邮件 [英] GoDaddy Send Email
本文介绍了GoDaddy的发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用ASP.Net 4.0 MVC 3和C#,试图从我的网站发送电子邮件。这code ++工程上的其他主机,但由于某种原因,GoDaddy的示数是出来。这里是code我使用。
VAR fAddress =新的MailAddress(customers@email.com);
VAR tAddress =新的MailAddress(mygodaddyaddress@email.com);
VAR消息= MAILMESSAGE新(fAddress,tAddress)
{
主题=主体,
身体=人体
}; VAR的客户=新SmtpClient(relay-hosting.secureserver.net);
client.Send(消息);
这是我收到的错误
邮箱名称不允许的。服务器响应为:对不起,您的邮件被行政拒绝。 (#5.7.1)
任何其他GoDaddy的用户在这里可以提供一些线索?
解决方案
这可能是什么做的,从地址:
问题似乎是从电子邮件地址。该发件人电子邮件地址必须与托管域避免这种错误的电子邮件地址。例如,如果你有一个托管域yourdomain.com,您的电子邮件地址中应该是这样的username@yourdomain.com。块引用>来源:
的http://www.cosmocentral.com/2009/01/553-sorry-your-mail-was-administratively-denied/I am using ASP.Net 4.0 with MVC 3 and C# to try and send an email from my site. This code works on other hosts but for some reason GoDaddy is erroring out. Here is the code I am using.
var fAddress = new MailAddress("customers@email.com"); var tAddress = new MailAddress("mygodaddyaddress@email.com"); var message = new MailMessage(fAddress, tAddress) { Subject = subject, Body = body }; var client = new SmtpClient("relay-hosting.secureserver.net"); client.Send(message);
Here is the error I am receiving
Mailbox name not allowed. The server response was: sorry, your mail was administratively denied. (#5.7.1)
Any other GoDaddy users here that can shed some light?
解决方案It might be something to do with the from address:
Problem seem to be the FROM email address. The FROM email address must be an email address with the hosted domain to avoid this error. For example if you have a hosted domain yourdomain.com, your FROM email address should be something like username@yourdomain.com.Source:
http://www.cosmocentral.com/2009/01/553-sorry-your-mail-was-administratively-denied/这篇关于GoDaddy的发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文