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

Spiral's avatar

Laravel 6 password reset mail not sending on Heroku

i have setting in laravel project when user reset the password then get email

local is working but after deploy the project on heroku then getting error

(1/1) Swift_TransportException

Connection could not be established with host http://train-grow.herokuapp.com/ :stream_socket_client(): php_network_getaddresses: getaddrinfo faile
0 likes
3 replies
jeffreyvanrossum's avatar

Have you configured your email settings in the environment you are deploying to (in .env)?

1 like
Spiral's avatar

Thanks @jeffreyvanrossum bro for replying me..

i have config:set all data of mail setting in the heroku setting config variable but i have not solution that how will be working with heroku

Spiral's avatar

@jeffreyvanrossum local .env for mail setting are working but after deploy the project on heroku for production not working and not getting email on reset password

Please or to participate in this conversation.