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

JorgeAlberto's avatar

mail delivery configuration.

hi. good night.

I have a problem with the configuration of mailings.

I have a shared hosting

Host SMTP                           smtp.hostinger.mx
Puertos SMTP (seguro)   587 
Registro MX                         mx1.hostinger.mx

this is my config in the .env

MAIL_DRIVER=smtp
MAIL_HOST=smtp.hostinger.com
MAIL_PORT=587 
[email protected]
MAIL_PASSWORD=********
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME="message"

this gives me an error

` Expected response code 354 but got code "554", with message "554 5.5.1 Error: no valid recipients " `

0 likes
2 replies
s4muel's avatar

show us the code that you used to send an email

vandan's avatar

I got solution. Run this command and it update .env configuration cache.

php artisan config:cache

Now Mail::send & Mail::queue were sending as configured in .env.

Please or to participate in this conversation.