4

I am having some issues where Magento 2 we are not getting any email confirmations of any sort. I have checked Magento configuration and everything is correct in terms of settings.

But when I have tail -f the mail log there is nothing being outputted to the log, its just blank.

I have also checked the exception log and there is nothing that appears in there to do with mail, not that I can see. I have also checked and the cron settings in the back-end are all correct.

1
  • Have you installed smtp extension for email ? Aug 4, 2016 at 4:54

3 Answers 3

2

You need to set up Cron Jobs for Magento

Check your Cron Jobs

http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html

Your cron run could depend on your server. So I'll use Magento Official documentation

Login to your server using ssh and type

which php

Result will be something like this

/usr/bin/php

Add following cron jobs

* * * * * /usr/bin/php <magento install dir>/bin/magento cron:run

* * * * * /usr/bin/php <magento install dir>/bin/magento setup:cron:run

* * * * * /usr/bin/php <magento install dir>/update/cron.php
0
1

Turns out I had to turn on Postfix on the server, seems to work now

0

Put your code in try-cache block, so if any error occurs in code, it will show in your code. First of all check that your email server is running with test php mail function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.