Laravel Mailer settings

Laravel Mailer settings for HostBrook and GoDaddy email sending
Written by Admin Last update: May. 12, 2023

Summary of this page:

Laravel

Settings for cPanel email acounts

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.

Settings for Professional Email accounts (OX Drive)

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.

Localhost settings for Professional Email accounts (OX Drive)

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}"

Was this article helpful?

Related articles