Magento 2 – Email Notification for Cancelled Orders emailmagento2magento2.1.6order-email Hi is it also possible to get email notification for cancelled orders? Thanks Best Answer You can always write your own module that will do that. You will need few ingredients for that: Have an observer that listens on the sales_order_save_after event. This link explains it well catch order place after event magento2 In this observer you will get the order object by $order= $observer->getData('order'); and you could check if the new status is canceled If condition from point 1 above is true you can proceed to send an email programatically. This link offers good idea of how to do that How to send mail programmaticlly in magento2? Related SolutionsMagento Email – Fix Email Notification Not Delivered to Customers Finally i traced the problem. Its just because of the version 1.9.1. It queues the mails to cron. I just commented the queue syntax in email template. Now It started working. You can refer Magento 1.9.1 Email Queue not working/buggy - how to troubleshoot and what is considered the best patch?. But this is just a workaround. The right way is of course to enable the Magento cronjob in shell (SSH): $ crontab -e Add this line to execute the Magento cron queue every 5 minutes: */5 * * * * php /absolute/path/to/magento/cron.php -mdefault */5 * * * * php /absolute/path/to/magento/cron.php -malways You might need to replace php with the absolute path to your php-cli binary. Ask your hoster if it doesn't work and you don't know the path. Magento – New Order Email Notification not working First go to System > Configuration > Sales Emails and make sure that Enabled is set to Yes. After that look in core_email_queue table. If there are entries in the table and customers/admin are not getting any emails it means cron job is not running. More details here. Related TopicMagento 1.9 – Customer Registration Notification Email to AdminMagento – New order admin email notification is not receving on multiple email addressMagento – How to get product Review/Ratings notification via email in Magento2
Best Answer
You can always write your own module that will do that.
You will need few ingredients for that:
Have an observer that listens on the
sales_order_save_after
event.This link explains it well
catch order place after event magento2
In this observer you will get the order object by
$order= $observer->getData('order');
and you could check if the new status iscanceled
If condition from point 1 above is true you can proceed to send an email programatically. This link offers good idea of how to do that
How to send mail programmaticlly in magento2?