I have a hosting on Godaddy. I have written an email app. It works properly on localhost. I can't run on hosting. When you enter the smtp settings of different servers, it still does not work. I also read the following topics.
Why mail laravel not working on the staging server?
Using Laravel, SMTP Mail not Working in Live Server
https://laracasts.com/discuss/channels/laravel/laravel-sending-mail-not-working-on-production-server
MAIL_DRIVER=smtp
MAIL_HOST=mail.domain.org
MAIL_PORT=587
MAIL_USERNAME=user@domain.org
MAIL_PASSWORD=password
MAIL_ENCRYPTION=null
Settings running on my localhost.
Connection could not be established with host smtp.domain.org [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]
Godaddy smtp settings when I give 500 error. It does not generate any error.log
Also
MAIL_DRIVER=mail
and
MAIL_DRIVER=sendmail
I tried them by looking at other links. but I couldn't find a solution.