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:
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
Solved! Go to Solution.
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.
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.