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.

Sign up for free tutorials in your inbox.

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

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

  1. I am really enjoying the theme/design of your site.
    Do you ever run into any web browser compatibility issues?
    A couple of my blog audience have complained
    about my blog not working correctly in Explorer but looks great in Chrome.
    Do you have any recommendations to help fix this problem?

    Feel free to surf to my web-site – 2022

  2. Pingback: How To Send an Email Via Cpanel Smtp Server In Laravel 10 - Webdev Trainee

Leave a Comment

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