Skip to content

HostGator SMTP Error: Could not connect to SMTP host #3034

Answered by KylerBalliet
KylerBalliet asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your prompt response.

I tried ENCRYPTION_STARTTLS on port 587 even though HostGator doesn't officially support it to see if it would give me a better error message because, like it says in the troubleshooting guide, the implicit encryption hides error messages making it hard to debug.

It ended up working and it spit out an error message about an authentication error due to invalid credentials. I was not expecting this because I am using those same credentials in my old script using a deprecated version of PHPMailer on PHP v7.4. I tried to log into the email server directly with the password I was using in the script and it didn't work so I reset the password and was able to log…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KylerBalliet
Comment options

Answer selected by KylerBalliet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants