Since Magento CE 1.9.1 all “new order emails” are queued. A new defined cronjob
core_email_queue_send_all is now processing the queued emails.
During development it’s not very handy to run the job by a minute based scheduler. In this case you can use n98-magerun to start the cronjob manually.
$> n98-magerun.phar sys:cron:run core_email_queue_send_all
installazione di Magerun
Download phar file
wget http://files.magerun.net/n98-magerun-latest.phar -O n98-magerun.phar
or if you have problems with SSL certificate:
curl -L -o n98-magerun.phar http://files.magerun.net/n98-magerun-latest.phar
You can make the .phar file executable.
chmod +x ./n98-magerun.phar
If you want to use command system wide you can copy it to /usr/local/bin.
sudo cp ./n98-magerun.phar /usr/local/bin/
Debian / suhosin:
On some debian systems with compiled in suhosin the phar extension must be added to a whitelist.
Add this to your php.ini file:
You don’t like the filename?
Just rename it to whatever you want.
Install with Composer
$ n98-magerun.phar self-update