InMotion Hosting Support Center

mail failure

2012-07-02 8:17 am EST

Hits: 1,191
I have a site the uses an external smtp server ( to send email. It has worked fine until 6/29. Now, I'm not getting email from submissions on my site. A look at my error log shows generally why:

[29-Jun-2012 19:38:41] PHP Fatal error: Uncaught exception 'phpmailerException' with message 'SMTP Error: Could not connect to SMTP host.' in /home/master59/php_exe/PHPMailer_5.2.1/class.phpmailer.php:912

Since I have changed nothing on my site recently, and I can still reach/use my smtp server from other computers, I assume there has been a change or problem with your server setup. Can you help me troubleshoot this?


You must login before you can ask a follow up question.

You must login before you can submit an answer.



43,761 Points
2012-07-02 12:54 pm EST
Hello darby,

No changes were made on our server here, but I did check into your files and see that the port used by SMTP is 25. You should try changing that port to 587. Port 25 used to be the default port, but it is increasingly being blocked by different ISPs and servers for spam prevention. Eventually it will not be used very often at all.

Without being able to test a specific account with username, password, and port, my guess is that this is the case.

I hope this answers your question. If you have any more questions or information specific to the issue please leave a comment below so we can further assist you.

Best Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!