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”
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”
The Laravel doco has a section on how to add a new app to an existing vagrant box. It never seems to work for me, though, without a couple of extra steps.
One extra step is to add the new app to the .hosts file (
/etc/hosts on a Mac,
C:\Windows\System32\drivers\etc\hosts on a PC), thus: Continue reading “Adding a new App in Homestead”