General

Laravel environment variables for sending email via cPanel

When configuring your Larval app to send email via a cPanel server please set the following environment variables in your .env file:

Setting Value
MAIL_DRIVER smtp
MAIL_HOST mail.example.com
Note: This is an example. Please use your actual domain.
MAIL_PORT 587
MAIL_USERNAME info@example.com
Note: This is an example. Please use your actual domain.
MAIL_PASSWORD Your Ecenica mailbox password.
MAIL_ENCRYPTION tls

Was this guide helpful?

Need help with this?

Open a ticket and link to this guide so our team can see what you have tried.

View support tickets

Power your business with Ecenica Hosting

Built for WordPress and serious websites. Fast, secure and supported by real people in the UK.

Ecenica hosting services represented by a connected red route across London