Email

I recommend using a 3rd party service for sending email. They usually offer SMTP support, and great logging and analytics. Especially on a shared host, where email is locked down, and a "naughty neighbor" can quickly get the server/IP you're emailing from blacklisted.

The services I recommend and use:

  • Sparkpost - Free up to 100k messages/month
  • Mailgun - Free, up to 10k messages/month

Configuration

To configure email, in your env.php file, setup the following:

MAIL_DRIVER=smtp
MAIL_FROM_ADDRESS=[CHANGE]
MAIL_FROM_NAME="[CHANGE]"
MAIL_HOST=[ADDRESS]
MAIL_PORT=[PORT]
MAIL_ENCRYPTION=tls
MAIL_USERNAME=
MAIL_PASSWORD=