August 11, 2008...12:36 pm

Email sending problem from Godaddy server solved in ASP.NET (108 situations)

Jump to Comments

Hello  everybody. When I am trying to send an email with HTML format the values are coming from database i felt problem with godaddy server.

నేను ఒకసారి GoDaddy ద్వారా ఈమెయిలు పంపిస్తుంటే చాలా ప్రొబ్లెంస్ వచ్చాయి
నేను వాటిని పరిశోధించి చివరికి చిన్న సమాధానం కనుకునా ఏమైనా సందేహం వుంటే మెయిల్ చెయ్యండి

Email; radhek@gmail.com

To solve that we must add relay hosting.

I’d just like to add that when you’re sending email via “relay-hosting.secureserver.net” you will be able to send email via the GoDaddy server but it will not work if you run it locally. This is normal – it’s a security feature.

Code below

using system.net.mail namespace.

const string SERVER = “relay-hosting.secureserver.net”;

System.Net.Mail.MailMessage objMail = new System.Net.Mail.MailMessage();

objMail.From = new MailAddress(“”);objMail.To.Add(MailId);

objMail.Bcc.Add(BCC);

objMail.IsBodyHtml = true;

objMail.Subject = “Order Confirmation”;

objMail.Priority = System.Net.Mail.MailPriority.High;

objMail.Body = “<h1>hi</h1>”;

SmtpClient Client = new SmtpClient(SERVER);Client.Send(objMail);

U need to Specifie the SMTP CLIENT SERVER LIKE THAT

This is working with my Godaddy Server try out

2 Comments

  • Failure Sending Email.
    This is the error iam getting when iam using the code u specified.

  • Mailbox name not allowed. The server response was: sorry, relaying denied from your location [59.162.194.68] (#5.7.1)

    this is the error i am getting when i am using tour code try to give answer as soon as possible…

    Your reply will be appreciated alot if you send me the solution..


Leave a Reply