Godaddy SMTP settings Laravel (shared hosting)

setup smtp settings godaddy in laravel

In this article, I will show you how we can set up Godaddy SMTP settings in Laravel, If you are using mailtrap or SendGrid to send email from your Laravel Application Via Godaddy Server, you are unable to send.

As GoDaddy shared hosting doesn’t allow you to send mail via mailtrap or SendGrid or other mail services, you always get errors in case of using other mail services.

To set up SMTP settings in Laravel on Godaddy in shared hosting follow the below step.

  1. Login into your GoDaddy account
  2. Go to your admin panel
  3. Create a mail with your domain name
  4. Go to your laravel .env file setup the smtp settings

Step-1 Log in to your GoDaddy account

First, you have to log in to the GoDaddy account, then go to your products, click on manage, then you have something like the below image.

cpanel admin overview godaddy

Step-2 Go to your cPanel Admin

Now click on cPanel Admin and look for the email, in the email section you have to create one email, that we will use in our .env file to send email from the laravel application.

When you search for the email then you have something like the below image.

Step -3 Create email account with your domain name.

when you click on the email account, then you have something like the below image,click on the create to create a new mail account.

email accounts godaddy

when you click create then you have something like the below image.

email accounts

Here you have to enter all details to create a email account associated with your domain name.

Step-4 Go to your .env file and add smtp details.

Now it’s time to setup your .env file so that you send mail direct from your application.

Go to .env file and add the below smtp details.

 [email protected]
 [email protected]
 MAIL_FROM_NAME="mail name"
.env file with smtp details

Read Also: How to add free ssl on godaddy

Read Also: Deploy Laravel 8 on godaddy

I hope the above article will help you to setup SMTP setting laravel on GoDaddy.

5 1 vote
Article Rating

Do you want to hire us for your Project Work? Then Contact US.
Spread the love
Notify of

newest most voted
Inline Feedbacks
View all comments
1 year ago

its not working i am getting error “connection could not establish”

5 months ago

not working

Would love your thoughts, please comment.x