Send Email Via Cpanel Smtp Server In Laravel

Hello, there in this tutorial I will show how to configure email settings in Cpanel for your laravel application. Before we get started you may want to check how to send emails in laravel from this video on Youtube.

Alright, let’s get started.

Step 1

Head over to your Cpanel dashboard.

Go to the part that has Email. Click on the Email accounts.

Here you will be presented with list of emails accounts you might have created or else you can create one.

Step 2

Click on the connected devices button found at the right corner of your Cpanel.

Now go to the Mail Client Manual Settings.

The credentials that you will need are from the outgoing server. This is what you will need to update your

.env file

Step 3

The configurations that you will need to update the .env file are as below

copy them and place them in the .env file remember the password should be set from the email accounts and you are good to go.

Step 4

Once this is done you can go ahead and test your laravel contact form by sending a message. This is the result you should get.

close

Sign up for free tutorials in your inbox.

We don’t spam! Read our privacy policy for more info.

5 thoughts on “Send Email Via Cpanel Smtp Server In Laravel”

Leave a Comment

Your email address will not be published. Required fields are marked *