cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution
Highlighted

Email not sending receiving through business mail SMTP

Hello Support,

 

I have purchased Deluxe Windows Hosting with Plesk as hosting server and GoDaddy Business Email. I have hosted my application on **photographia.com server, where I have integrated send mail functionality (code snippet below). It either not sending mail or not throwing exception (error). I have integrated business mail account in microsoft outlook 2010.

 

I have tried 2 different ways to send mail.

1. Code Snippet:

In web.config:
<system.net>
    <mailSettings>
      <smtp from="enquiry@**photographia.com">
        <network host="relay-hosting.secureserver.net" port="25"/>
      </smtp>
    </mailSettings>
  </system.net>


In Controller action method:

try
{
                MailMessage message = new MailMessage();
                message.From = new MailAddress("enquiry@**photographia.com");
                message.To.Add(new MailAddress("enquiry@**photographia.com"));

                message.Subject = "Enquiry";
                message.Body = "Hello";
                message.IsBodyHtml = true;
                message.Priority = MailPriority.Normal;

                SmtpClient client = new SmtpClient();
                client.EnableSsl = false;
                client.Send(message);
}
catch (Exception ex)
{
          throw ex;
}

 

Below are the DNS Records:

DNS Mapping.png

 

 

 I don't know, what I am doing wrong here. Why it doesn't send any mail. Help me to resolve this issue team.

 

Thanks

1 REPLY 1
Community Manager
Community Manager
Solution

Re: Email not sending receiving through business mail SMTP

Hi @photgraphyst. Thanks for being part of GoDaddy Community! I'm not able to review your code, but one thing you can do is double check if the messages are actually being sent with our support team. If you can give them the time and date of a recent message, they can usually check with our advanced team to confirm whether or not it was sent and if it was rejected, what the reason was. Hope you're able to figure this out. 

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.