Sending email from PHP in Vagrant via sSMTP and Office365

I have a PHP app that needs to send email, and it recently moved from a real server to a Vagrant box (don’t ask!) which was not configured to send email out to the real word.

After trying a few different options the one that ended up working for me was to use sSMTP to send the email via our Office365 system. This is how I got it to work. Continue reading “Sending email from PHP in Vagrant via sSMTP and Office365”

Sending email from PHP in Vagrant via sSMTP and Office365

Sending Mail from a Vagrant box

Spoilers – I went with sSMTP, and the details of how I did it are here.

Option 1 – use sSMTP instead of Sendmail

Most config is from here but using the settings from Outlook Web Access (Settings cog -> Mail -> Accounts -> POP and IMAP, look in the SMTP setting section). This means having a new bit of software installed and configured (possibly via Vagrant?) This is what eventually worked for me (see sSMTP post here). Continue reading “Sending Mail from a Vagrant box”

Sending Mail from a Vagrant box