In the development environment i have a Wordpress cron job being run via wp cron event run --due-now
that sends email via wp_mail() which fails with the error: sh: 1: /usr/sbin/sendmail: not found
and no email shows up in MailHog.
$ file /usr/sbin/sendmail
/usr/sbin/sendmail: cannot open `/usr/sbin/sendmail' (No such file or directory)
While it appears Trellis doesn’t install /usr/sbin/sendmail on the development VM, the same job called via a page load does send the email and it shows up in MailHog as expected.
I’m new to Trellis and not very familiar with how the MailHog and Wordpress integration is setup by Trellis and was hoping someone has some ideas why this maybe occurring.
Thanks.