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
MAIL_FROM_ADDRESS=no-reply@purplepi.ie
MAIL_FROM_NAME="${APP_NAME}"
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies