Please help me to setup a cron job to send newsletter in magento 2.1.6. Currently i'm not able to send newsletters to the subscribers. So i need to setup Cron job and check it out.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
If your hosting provider uses cPanel, you should be able to use the following Cron Job:-
php /home/<CPANEL USERNAME>/public_html/bin/magento cron:run php /home/<CPANEL USERNAME>/public_html/update/cron.php php /home/<CPANEL USERNAME>/public_html/bin/magento setup:cron:run
<CPANEL USERNAME> will be the username for your cPanel account. This also assumes that your Magento store is in the "
public_html" directory. If it is in other directories, do add them in after "
Some hosting providers may also use a different path to the PHP binary so you may need to double confirm with your provider on whether you can use just PHP or if you will need something else (like
The first command (magento cron:run) will perform the reindex, send automated e-mails, generates the sitemap, etc.