Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hasen39's avatar

shared hosting mail configration

i want to send mail in godady but it cant sent

here is my .env file

MAIL_DRIVER=sendmail
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=myemail
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=ssl
MAIL_FROM_NAME=Ethioonline

any one who who configure before

0 likes
4 replies
Snapey's avatar

there are loads of questions here from people trying to send using gmail. did you search the forum?

1 like
jlrdw's avatar

A helpful hint hopefully, to find more "laracasts discussions".

Google

site:laracasts.com your search term
MarianoMoreyra's avatar

Hi @hasen39

If you are trying to send over gmail, as Snapey pointed out, there are plenty of questions already answered here.

Although in case you want to send an email by any means, and you have some mail accounts configured at GoDaddy, here you have a currently working configuration:

MAIL_DRIVER=smtp
MAIL_HOST=localhost
MAIL_PORT=587
MAIL_USERNAME=EMAIL_ADDRESS
MAIL_PASSWORD=EMAIL_PASSWORD
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=EMAIL_ADDRESS
MAIL_FROM_NAME="${APP_NAME}"

Hope this helps!

Please or to participate in this conversation.