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

Advertisements