I\’m working on a custom module to send emails for abandoned carts.
I have created a backoffice grid with a button that allow manual sending of the emails and it works fine but when i configure a cron to do the same task automatically it doesn\’t work.
The cron job execute the function but encounters an error when sending email.
In my logs i have the following error reported :
exception \’Zend_Mail_Transport_Exception\’ with message \’Unable to send mail. \’ in /httpdjail/var/www/vhosts/mydomain/httpdocs/lib/Zend/Mail/Transport/Sendmail.php:138
I tried a lot a methods but i can\’t make it works.
It is weird because newsletters are sent with cron.
Anyone have ideas ?