LaravelOther

Godaddy SMTP settings Laravel (shared hosting)

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.

 MAIL_DRIVER=smtp
 MAIL_HOST=localhost
 MAIL_PORT=25
 MAIL_USERNAME=mail@domainname.in
 MAIL_PASSWORD=yourpassword
 MAIL_ENCRYPTION=
 MAIL_FROM_ADDRESS=mailname@domainname.in
 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.

Shaiv Roy

Hy Myself shaiv roy, I am a passionate blogger and love to share ideas among people, I am having good experience with laravel, vue js, react, flutter and doing website and app development work from last 7 years.

Related Articles

2 Comments

Leave a Reply

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

Back to top button