skip to Main Content

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


  1. [email protected] is not valid host.

    Change MAIL_HOST to smtp.myDomain.com

    Login or Signup to reply.
  2. Once you try change
    MAIL_PORT=587
    MAIL_ENCRYPTION=tls

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search