I newly installed Magento 1.9.2.1. When a customer places an order there is no confirmation email. The cron is like this:
"php /home/username/domains/domainname/public_html/cron.php".
In the log there is a Warning:
shell_exec () HAS BEEN disabled For Security Reasons in /home/username/domains/domainname/public_html/cron.php".
Is this the reason why confirmation mails are not sent? And how to fix this?
According to the hoster, it is not possible to use shell exec
You will need to open the cron.php file and look for the following line:-
$isShellDisabled = (stripos(PHP_OS, ‘win’) === false) ? $isShellDisabled : true;
Add the following in a new line exactly after the above line:-
$isShellDisabled = true;
Your emails should start delivery after a few minutes.
Added the line and now the error is gone. But still no email.
What is your Cron Job's interval? The emails will only be sent out when the Cron Job is being executed so you will need to set your Cron Job interval to every 5 minutes or every 1 minute if you want almost immediate emails.
the interval is 10 minutes
And you didn't receive any emails after 10 minutes?
In such a case you need to check if the emails are queued at the server level. Your hosting provider should be able to check this for you.
After following lots of other suggestions with no success this has finally resolved our problem. All other emails from our site were receiving and sending ( eg shipping, contact us ,email a friend ) It was just the new order emails that did not, which was so frustrating as we did not want to sit in front of our admin screen waiting for them to come in.
Many many thanks
Jane
Hey Jane,
How did you fix the issue? can you please the details with us?