Send Email Programmatically On GoDaddy

I have had a difficult time getting dasBlog to send emails on my GoDaddy account. I have not been able to figure out the configuration required to get it to work. I also wanted to have a “contact” page that is served up outside of dasBlog. This would make it accessible to other web pages independent of dasBlog. It turns out that the code to send emails from your GoDaddy account is simple. The following code works on my account:

MailMessage msg = new MailMessage();
msg.From = new MailAddress("", "Website Contact Form");
msg.Subject = "Test Email"
msg.Body = "This is only a test."
msg.IsBodyHtml = false;

SmtpClient smtp = new SmtpClient("", 25);

Note: For security reasons, GoDaddy will not allow you to set a ‘From’ address outside of you domain.

  1. MsbowElite

Leave a Reply

Your email address will not be published.