Magento Newsletters Not Sending + Solution
Mar 11, 2009 · 2 minute readCategory: magento
If you are scratching your head trying to figure out why your Magento is not sending out newsletter emails then this post is what you need.
Magento has a script called cron.php which handles all of the timed jobs that your Magento store has to do. In this list is the task of sending out newsletters. You have to set up your server crontab to run this cron.php script at regular intervals (eg 5 minutes).
Once you do this, you should find that your newsletter will be sent out as expected.
See this page for some instructions
However - here are my simple instructions for a linux server.
Open up an SSH session with your server. (If you can’t do this you are going to have to ask your hosts to do this for you instead).
Browse to the document root of your magento store, the folder with cron.php in there
enter the command
pwd
This command gives you the current full path. Write this down somewhere
enter the command
which php
This command gives you the path to your PHP binary. Write this down somewhere
enter the command
crontab -e
This opens up your crontab editor which is the system for scheduling tasks on Linux
hit the ```i key to go into insert mode on the crontab editor (vi basically)
on a new line paste the following, but replacing the paths with the paths you got before code */5 * * * * /path/to/php -f /path/to/cron.php
8. Hit ```esc
then type the command
This saves the crontab
- Create a newsletter and schedule it to send in 2 minutes time.
It should send. If it doesn’t then something else is wrong, but hopefully this should fix it for you.