php - PHPMailer via Cron job stopped working in July on Bluehost

184

The script was running fine by the 20th of July. It is still working, when run via URL address. But when it is run via Bluehost Cron job, it does not send out an email.

I have seen another similar thread, where recommended solution was to set the "Helo" property on your mail object. I added these two lines into the script:

$mail->Hostname = "bluehost.com";
$mail->Helo = $mail->Hostname;

But mails are still not sent. Can please someone help? I would like to have exact solution.

Thank you.

122

Answer

Solution:

It is working now. The two lines of code were good enough to make it working again. I had another non related error in the script.

People are also looking for solutions to the problem: php - image cannot be displayed, becuase it contains errors - BLOB

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.