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

artisticre's avatar

cPanel Email & Laravel Contact Form

I have a form that was working with mailtrap.io. When I uploaded to my shared hosting and I changed the .env file to the credentials of my server, it acts like its working and gives the message that it was sent but it never arrives in the email box. Is this a webmail issue or do I not have something configured right with Laravel?

0 likes
2 replies
musa11971's avatar

This can depend on many things and we don't have much info to go off here.

Do you send mail using the Laravel queue? (If so, is the queue worker running and is the queue configured properly?) Is it possible that your configuration on the server needs to be recached?

Ty's avatar

Are you receiving any errors? If you could show your mail config in the .env that would help us more to see what it going on. Are you use the .env file for the mail credentials or are you setting your credentials in the /config/mail.php?

Please or to participate in this conversation.