I’m running Trellis/Bedrock/Sage on a subdomain that has the same hostname as the email configured in the Trellis ssmtp. The mail relay is going through Microsoft Office 365. If I ssh into the box and just run ssmtp from the command line it works fine.
However, trying to use the forgot password function in Wordpress I get:
The email could not be sent. Possible reason: your host may have disabled the mail() function.
From the Trellis docs I was under the impression that the wp_mail
function was already filtered by default to use smtp, but maybe that’s not the case? Do I need to do additional configuration? I don’t see any errors pertaining to this at all in logs. Any guidance on this would be greatly appreciated.
Edit: I should maybe also mention that I initially provisioned and deployed without SSL and without the SMTP settings configured. After updating I reprovisioned, ran without error.