Email Configuration

We can send the mails using SMTP, SES and Mailgun drivers. In SMTP we can use Mailtrap, Gmail and Elastic Email for sending mails. Refer the laravel mail documentation https://laravel.com/docs/5.5/mail for better understanding.

Mailtrap Configuration:

MAIL_DRIVER=smtp

MAIL_HOST=smtp.mailtrap.io

MAIL_PORT=25 or 465 or 2525

MAIL_USERNAME=username

MAIL_PASSWORD=password

MAIL_ENCRYPTION=ssl

Gmail Configuration:

MAIL_DRIVER=smtp

MAIL_HOST=smtp.gmail.com

MAIL_PORT=465

MAIL_USERNAME=emailid

MAIL_PASSWORD=password

MAIL_ENCRYPTION=ssl

Elastic Email:

MAIL_DRIVER=smtp

MAIL_HOST=smtp.elasticemail.com

MAIL_PORT=2525

MAIL_USERNAME=username

MAIL_PASSWORD=password

MAIL_ENCRYPTION=tls

Amazon SES:

MAIL_DRIVER=ses

SES Key=

SES Secret=

SES Region=

Refer the documentation for getting the credentials and activating your account https://docs.aws.amazon.com/ses/latest/DeveloperGuide/Welcome.html

For better understanding of AWS Regions and End points the link https://docs.aws.amazon.com/general/latest/gr/rande.html

Note: Before sending email through amazon ses you should verify sender and receiver email addresses.

Mailgun Driver:

MAIL_DRIVER=mailgun

MAILGUN_DOMAIN=

MAILGUN_SECRET=

MAIL_ENCRYPTION=tls

Note: Before sending email through Mailgun driver you should verify receiver email address.

Note: We have overrided all these credentials in "app/Providers/AppServiceProvider.php"

Last updated