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

man-u-l's avatar

Problems sending email mail with Bluehost via PHP or Laravel

We use Laravel to queue sending emails from an external legacy app that a few clients use, one of those clients use Bluehost for their email and that client is unable to send email via PHP or Laravel, the worst part is that there is no error, the email is sent but never arrives, if I login via webmail and send an email it works fine.

I found this page with details about sending via PHP script:

https://www.karavadra.net/php-mail-function-with-bluehost-working/

But that no longer works, same thing happens, no error but email is never sent.

Any pointers will be greatly appreciated.

0 likes
1 reply
siangboon's avatar

first of all, test your code with log (change the driver to log in config/mail.php) or mailtrap... if log does not show any log, something wrong with your code... if mailtrap not working mean something wrong with your code or firewalll/security policy on the server... if log show some message, then can try to seek help from bluehost to get the mail log error....

Please or to participate in this conversation.