Marek
Marek

Reputation: 111

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 = "mail.marekjedrysiak.com";
    WebMail.SmtpPort = 25;
    WebMail.EnableSsl = true;
    WebMail.UserName = "[email protected]";
    WebMail.Password = "******";
    WebMail.From = "[email protected]";

    WebMail.Send("[email protected]", "Message from server",null);

then coming this message :

then coming this message :

Please help :(

Upvotes: 0

Views: 69

Answers (1)

BadHeuristics
BadHeuristics

Reputation: 319

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

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 marekjedrysiak.com 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.

Source: https://help.hover.com/hc/en-us/articles/217282457-How-to-Edit-DNS-records-A-CNAME-MX-TXT-and-SRV-Updated-Aug-2015-

Upvotes: 2

Related Questions