Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Wednesday, July 28th at 3pm PST / 6pm EST. Learn more
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SMTP Not Sending, error not thrown

I'm using the following code

const string SERVER = "";
System.Web.Mail.MailMessage oMail = new System.Web.Mail.MailMessage();
oMail.From = "";
oMail.To = "";
oMail.Subject = "New Online Form Message";
oMail.BodyFormat = MailFormat.Html; // enumeration
oMail.Priority = MailPriority.High; // enumeration
oMail.Body = body;
SmtpMail.SmtpServer = SERVER;
oMail = null; // free up resources

 Its not throwing an error, its sending the email through to the smtp server but the message isnt sent to the address.

The body contains html 


Hello @GiveMeAUsername!


Thank you for posting. Which type of hosting are you sending mail from? The relay server can be different depending on the type of hosting you're using


Heather - GoDaddy | Community Moderator
24/7 support available at