Server Setup

Laravel Mail Configuration

by ,


If you have configured your server to correctly send outgoing emails, you don’t need any third party services.

Here’s Laravel 5 configuration to send email using local MTA (sendmail driver). Add the following to your .env file:

MAIL_DRIVER=sendmail
MAIL_HOST=localhost
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=noreply@example.com
MAIL_FROM_NAME="Site Name"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.