GoDaddy SMTP Server

snippet of how to send email from within GoDaddy web hosting

mail.From = new MailAddress(fromAddress);
mail.To.Add(toAddress);
mail.Subject = subject;
mail.IsBodyHtml = true;
mail.Body = htmlconvert(bodytext);
 
//Connect to server and send message.
SmtpClient smtp = new SmtpClient();
smtp.Host = "relay-hosting.secureserver.net";
smtp.Send(mail);

Leave a Reply

Your email address will not be published. Required fields are marked *