Past several days the code I wrote worked well. It was PHP code hosted by Godaddy and scheduled to run hourly using the Cron job setup feature of my hosting account offered by GoDaddy.
We get error:
Warning: fsockopen(): unable to connect to relay-hosting.secureserver.net:25 (Connection refused) in /home/rahulec/public_html/emailtest.php on line 26
Mail not sent.
Why did this stop? I called GoDaddy but the online guy, though very helpful, was not able to satisfactorily tell me what caused this to stop.
GoDaddy is blocking my access to relay email?
relay server used: relay-hosting.secureserver.net
No authentication since code and domain managed by GoDaddy.
Note: Our cpanel emails are working fine. Just the emails sent by system through their relay server stopped working.
Can you authenticate to your SMTP relay? It's possible that to avoid outbound spam GoDaddy removed the ability to programmatically send, but if you authenticate using a mailbox at GoDaddy you may be able to send that way.
Same issue I am facing with Godaddy and no one from customer support to help as every time a new executive on tele calling and different solution provided, unfortunately, not a single solution is workable.moreover, how the running system setting changed automatically, I do not understand.