Как исправить эту ошибку: Не удалось установить соединение с хостом «mailpit:1025». ⇐ Php
-
Anonymous
Как исправить эту ошибку: Не удалось установить соединение с хостом «mailpit:1025».
Full error : Connection could not be established with host "mailpit:1025": stream_socket_client(): php_network_getaddresses: getaddrinfo for mailpit failed: Temporary failure in name resolution I'm doing a website using laravel 10 and docker, and when trying to use Laravel's Mail, i get this error. Here is my current configuration and code (just the mail parts) :
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=mrthameiu@gmail.com MAIL_PASSWORD=[my password] MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=mrthameiu@gmail.com MAIL_FROM_NAME="Finder Demon"
Источник: https://stackoverflow.com/questions/780 ... t-mailpit1
Full error : Connection could not be established with host "mailpit:1025": stream_socket_client(): php_network_getaddresses: getaddrinfo for mailpit failed: Temporary failure in name resolution I'm doing a website using laravel 10 and docker, and when trying to use Laravel's Mail, i get this error. Here is my current configuration and code (just the mail parts) :
MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=mrthameiu@gmail.com MAIL_PASSWORD=[my password] MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=mrthameiu@gmail.com MAIL_FROM_NAME="Finder Demon"
Источник: https://stackoverflow.com/questions/780 ... t-mailpit1