cancel
Showing results for 
Search instead for 
Did you mean: 

Order confirmation email not sending

Order confirmation email not sending

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

7 REPLIES 7

Re: Order confirmation email not sending

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. 

 

Re: Order confirmation email not sending

Added the line and now the error is gone. But still no email.

Re: Order confirmation email not sending

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. 

Re: Order confirmation email not sending

the interval is 10 minutes

Re: Order confirmation email not sending

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. 

Re: Order confirmation email not sending

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

Re: Order confirmation email not sending

Hey Jane,

 

How did you fix the issue? can you please the details with us?