Marek Marek - 1 year ago 87
C# Question

Not able to send message from server email do my gmail

I am trying to send message from server email to my gmail

WebMail.SmtpServer = "";
WebMail.SmtpPort = 25;
WebMail.EnableSsl = true;
WebMail.UserName = "";
WebMail.Password = "******";
WebMail.From = "";

WebMail.Send("", "Message from server",null);

then coming this message :

then coming this message :

Please help :(

Answer Source

This isn't an ASP.NET or C# related problem, your domain doesn't have an MX record. You can confirm this by checking

I see that your domain is registered with Tucows (Hover). In order to change your MX records:

  1. Log in to your Hover account. If you have multiple domain names, select your domain.
  2. Click the DNS tab.
  3. Click Add New.
  4. For Record Type, select MX.
  5. Enter the address of your mail server.
  6. Click Save.

If you need more help setting up or debugging your mail service, you should contact Hover's support. They can also advise you on what exactly to enter as the address of your mail server.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download