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.
- Login into your GoDaddy account
- Go to your admin panel
- Create a mail with your domain name
- 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.
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.
when you click create then you have something like the below image.
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.
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.