Send email on Bluehost shared hosting

北城余情 提交于 2019-12-08 06:20:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!