Connection could not be established with host "ssl://null:465": stream_socket_client(): php_network_getaddresses: getaddrinfo failed

If I use symfony/mailer in symfony4.4 on the my localhost with mailtrap, it works. No error

But If I try on the server https://my.ionos.fr, it display error like this :

Connection could not be established with host "ssl://null:465": stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known at /vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:138)"} []

Can anyone please help me? I have tried in .env but no one is working.

#MAILER_DSN=smtp://xxx:[email protected]:465?encryption=ssl&auth_mode=login

#MAILER_DSN=sendgrid://[email protected]

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *