问题
I have tested Laravel emails on local server with gmail smtp and works fine.
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=myname@gmail.com
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
I don't know how to find smtp details on bluhost shared hosting. So anyone knows the setting please comment.
This is what i have used currently on the server
MAIL_DRIVER=smtp
MAIL_HOST=mail.mydomain.com
MAIL_PORT=26
MAIL_USERNAME=myname@mydomain.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
回答1:
i tried with account of bluehost, this works:
MAIL_DRIVER=smtp
MAIL_HOST=mail.domain.com
MAIL_PORT=26
MAIL_USERNAME=email@domain.com
MAIL_PASSWORD=password
MAIL_ENCRYPTION=null
来源:https://stackoverflow.com/questions/47525723/send-email-on-bluehost-shared-hosting