SMTP eMail Blog >> Godaddy-SMTP-eMail-Configure

Godaddy SMTP eMail Secure Server Configure in asp.net, c# code

Godaddy-SMTP-eMail

A blog or site does not look professional when don’t have an own custom email address of your website. In this post am sharing the complete guide on “how to send an email to the recipients using asp.net, c# code through GoDaddy SMTP server. I hope this article will be helpful for users who are unable to send.

  • Godaddy SMTP host: relay-hosting.secureserver.net
  • Port : 25

Contact page design

Godaddy-Send-eMail-asp.net

Import the following Namespace

using System.Net;
using System.Net.Mail;

Button Click Event

protected void ButSubmit_Click(object sender, EventArgs e)
{
MailMessage msg = new MailMessage();
msg.From = new MailAddress(TxtEmail.Text);
msg.To.Add("your email address");
msg.Subject = TxtSub.Text;
msg.Body = TxtMsg.Text;
msg.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient("relay-hosting.secureserver.net", 25);
smtp.Credentials = new System.Net.NetworkCredential("your email address", "password");
smtp.EnableSsl = false;
smtp.Send(msg);
msg.Dispose();
}

Godaddy-Website-Builder

Find out, How simple it is now to create a professional website with the help of web builder tool from GoDaddy. (free themes and much more..)

Click for more details...
Godaddy-Shared-Hostings-Plans

Thinking to start an online small business with a low budget, then check out the best economy plans on shared hostings with GoDaddy. Why it is perfect for the beginners. Check out more ....

Click for more details...
Godaddy-eMail-Workspace-Login

GoDaddy host user how to set up the workspace email custom domain

Click for more details...
Copyright © hostandservers.com