Summary of this page:
MAIL_MAILER=smtp
MAIL_HOST=xxxxxxxNNNNN.prod.iad2.secureserver.net
MAIL_PORT=465
MAIL_USERNAME=mail@mydomain.com
MAIL_PASSWORD="EMAILPASSWORD"
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=mail@mydomain.com
MAIL_FROM_NAME="${APP_NAME}"
Replace xxxxxxxNNNNN with your correct ID that you can find in the address bar while login in cPanel
Important (!): If you use Professional email account to send emails via Laravel mailer, be sure email routing set to LOCAL in cPanel Settings.
For secure connection use SSL:
MAIL_MAILER=sendmail
MAIL_HOST=smtpout.secureserver.net
MAIL_PORT=465
MAIL_USERNAME=mail@mydomain.com
MAIL_PASSWORD="EMAILPASSWORD"
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=mail@mydomain.com
MAIL_FROM_NAME="${APP_NAME}"
For non secure connection:
MAIL_MAILER=sendmail
MAIL_HOST=smtpout.secureserver.net
MAIL_PORT=25
MAIL_USERNAME=mail@mydomain.com
MAIL_PASSWORD="EMAILPASSWORD"
MAIL_FROM_ADDRESS=mail@mydomain.com
MAIL_FROM_NAME="${APP_NAME}"
Important (!): If you use Professional email account to send emails via Laravel mailer, be sure email routing set to REMOTE in cPanel Settings.
MAIL_MAILER=smtp
MAIL_HOST=smtpout.secureserver.net
MAIL_PORT=465
MAIL_USERNAME=mail@mydomain.com
MAIL_PASSWORD="EMAILPASSWORD"
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=mail@mydomain.com
MAIL_FROM_NAME="${APP_NAME}"