Phpmailer SMTP connection error only in a cron job


InMotionFans
n/a Points
Asked:
2013-12-23 10:49 pm EST

Hits: 556
Has anyone experienced "Mailer Error: SMTP Error: Could not connect to SMTP host" using phpmailer but only when run by a cron job. If run directly from a browser no error occurs.

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

You must login before you can submit an answer.

OTHER ANSWERS

0

JeffMa
Staff
8,502 Points
2013-12-24 10:05 am EST
I have looked into your site and I see that the cron is running your script the same as it is processed as if you were to access the site in a browser. I am not currently seeing this error at all when running it in a command line as a cron would.

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

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!