You can send the mail using godaddy hosting acocount using .NET 2.0 System.Net.Mail code namespace. Here is a simple snippet of how to send an email message from “” to multiple email recipients It uses the godaddy smtp server.(note that the To a CC properties are collections and so can handle multiple address targets):

MailMessage message = new MailMessage();
message.From = new MailAddress("");
message.To.Add(new MailAddress(""));
message.To.Add(new MailAddress(""));
message.To.Add(new MailAddress(""));
message.CC.Add(new MailAddress(""));
message.Subject = "This is my subject";
message.Body = "This is the content";
SmtpClient client = new SmtpClient();

System.Net.Mail reads SMTP configuration data from web.config file, Here is an example of how to configure it:

      <smtp from=”“>
        <network host=”” port=”25″ userName=”username” password=”secret” defaultCredentials=”true” />

If you are using godaddy hosting then you need to use as host and give the valid email id and password in web.config’s mailsettings as mentioned above.

Hope this helps, Enjoy Coding 🙂

Similar Topics:


email godaddy com