magerun – Send all queued emails from command line




Since Magento CE 1.9.1 all “new order emails” are queued. A new defined cronjobcore_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.

  1. $> n98-magerun.phar sys:cron:run core_email_queue_send_all


installazione di Magerun


There are two ways to install the tools:

Download phar file

  1. wget -O n98-magerun.phar

or if you have problems with SSL certificate:

  1. curl -L -o n98-magerun.phar

You can make the .phar file executable.

  1. chmod +x ./n98-magerun.phar

If you want to use command system wide you can copy it to /usr/local/bin.

  1. 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:

  1. suhosin.executor.include.whitelist="phar"

You don’t like the filename?

Just rename it to whatever you want.

Install with Composer



  1. $ n98-magerun.phar self-update