I have a domain, and I created an email with the Cpanel on that server. Now when I try to use it, I get the following error.
Connection could not be established with host [email protected]
:stream_socket_client(): php_network_getaddresses: getaddrinfo failed:
Name or service not known
.env
MAIL_MAILER=smtp
[email protected]
MAIL_PORT=465
[email protected]
MAIL_PASSWORD={mypassword}
MAIL_ENCRYPTION=ssl
[email protected]
MAIL_FROM_NAME="${APP_NAME}"
2
Answers
[email protected] is not valid host.
Change MAIL_HOST to smtp.myDomain.com
Once you try change
MAIL_PORT=587
MAIL_ENCRYPTION=tls