Home » Programming / Coding

553 sorry, your mail was administratively denied

30 January 2009 6,881 views No Comment

If you are using GoDaddy web hosting and MailMessage in ASP .NET to send emails you might see this error message:

553 sorry, your mail was administratively denied

This seem to be a change GoDaddy made within last few months, I have no idea why.

Solution:

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.

Here is an example code:

MailMessage myMessage = new MailMessage();
myMessage.From = “username@yourdomain.com”;
myMessage.To = “somebody@somebody.com”;
myMessage.Subject = “Hello”;
myMessage.BodyFormat = MailFormat.Html;
myMessage.Priority = MailPriority.Low;
myMessage.Body =”Hello there.”;
SmtpMail.SmtpServer = “relay-hosting.secureserver.net”;
SmtpMail.Send(myMessage);

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.