Laravel - SMTP Setup

This is required to be setup for email verification and/or password reset emails.

Example env config file settings for SMTP
Obviously set your own SMTP details (and make sure the From address exists - as your mail server can reject it if not)

The APP_NAME needs to be set correctly as we will use this as the From Name of the email address which used for password resets.

APP_NAME="Laravel Demo1 App"

The APP_URL needs to be set correctly as it is the base URL for the password reset link.

APP_URL=http://w2016.lab2.purplepi.ie/demo1

SMTP configuration

MAIL_MAILER=smtp
MAIL_HOST=smtp.reg365.net
MAIL_PORT=587
MAIL_USERNAME=myusername
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="${APP_NAME}"
  • code/laravel/email.txt
  • Last modified: 2020/04/11 18:36
  • by gerardorourke