Issue sending email through GMail from GoDaddy
mbutler755 said 1 year ago:
I have an MVC3 website (IntenseCMRS.com). Inside that site I have a DLL configured to send email through GMAIL servers. It works without issue in my development environment on my local machine, but in production, it doesn’t send.
I am using smtp.gmail.com with SSL on port 587. I am thinking the server is having an issue opening this port and sending the email. I changed my app to tell me when it can’t submit the email by displaying an error. It is displaying the error about 85% of the time and not sending the email. Every once in a while though, it works just fine. Is there a way to resolve this issue or do I need to use GoDaddy servers to send the email? I can change my class and try that, but I really don’t want to.
chrisg said 1 year ago:
@mbutler755,
If you are sending mail from the hosting account, you will need to use our Hosting Relay for this purpose. The server to be specified should be relay-hosting.secureserver.net. You will also want to make sure it is sending through port 25. There is no Login credentials required to send from this server.
Christopher G.
mbutler755 said 1 year ago:
Christopher,
Thanks for the info. I will revise the class and test it. Do I have to make the from sender a GoDaddy domain or can I make the from sender anything I want?
chrisg said 1 year ago:
@mbutler755,
The answer would be yes and no for making any address the sender. Some email address providers such as gmail.com actually have restrictions that prevents messages from being sent out from servers not part of their network. Generally it is better to use an address that is also being hosted by the script you are using this mailer for.
Christopher G.
mbutler755 said 1 year ago:
Chris,
I re-wrote my class to utilize the relay and everything is working perfectly. Thank you so much for the info!
Matt
chrisg said 1 year ago:
@mbutler755,
Glad to hear you got this worked out. Let us know if you have any other questions.
Christopher G.
4 min expected wait time