Getting Started

Why SMTP Email does not work with HTML body attached ?

I am developing an application and using SMTP email service with GoDaddy. I followed the following link to set up the basic email and worked as expected.

However, when I attach the HTML body to it, do not get any emails.  


This is the code I used.


string EmailLoginName = "";
MailMessage mailMsg = new MailMessage();
mailMsg.From = new MailAddress(EmailLoginName);
mailMsg.To.Add(new MailAddress(""));
mailMsg.Subject = "Testing godaddy email";


string htmlBody = oEmail.MailBodyDescription;

mailMsg.IsBodyHtml = true;
mailMsg.Body = htmlBody;


SmtpClient client = new SmtpClient();


Any help is appreciated.

Community Manager

Hey @pubuducg. Check out this post for suggestions on things you can do in this situation. Hope that helps. 


JesseW - GoDaddy | Community Manager | 24/7 support available at | Remember to choose a solution and give kudos.