How To Send Godaddy SMTP eMail Setup Host & Port (asp.net, c#)

How To Send Godaddy SMTP eMail Setup Host & Port (, c#)


shared hosting email sending limits

#emailcsharp #smtpemail #asp.net
Now ! send eMails from your website on GoDaddy hostings, the code is given below…

Godaddy SMTP host :- relay-hosting.secureserver.net
PORT :- 25

NAMESPACES

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

CODE

MailMessage msg = new MailMessage();
msg.From = new MailAddress(TxtEmail.Text);
msg.To.Add(“[email protected]”);
msg.Subject = TxtSub.Text;
msg.Body = TxtMsg.Text;
msg.IsBodyHtml = true;
// MailMessage instance to a specified SMTP server
SmtpClient smtp = new SmtpClient(“relay-hosting.secureserver.net”, 25);
smtp.Credentials = new System.Net.NetworkCredential(“yourgodaddyemailusername, “godaddyemailpassword”);
smtp.EnableSsl = false;

// Sending the email
smtp.Send(msg);
// destroy the message after sent
msg.Dispose();
LitMsg.Text = “Thanks for email us.. will get back ASAP..!”;
TxtEmail.Text = “”;
TxtMsg.Text = “”;
TxtSub.Text = “”;
TxtName.Text = “”;

17 thoughts on “How To Send Godaddy SMTP eMail Setup Host & Port (, c#)

  1. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 72.167.234.197:25

    I m getting this type of error ? How to solve ? Help me out !!

  2. Awesome video. Thanks. I got mine to work. My question references "smtp.EnableSsl = false". Does this mean godaddy is not secure? I used outlook live, and they require ssl. Does godaddy relay email in plain text? Thanks.

Leave a Reply

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