I have a .env file looks like this:
MAIL_MAILER='mailgun'
MAIL_HOST='smtp.mailgun.org'
MAIL_PORT=587
MAIL_ENCRYPTION='SSL'
MAIL_FROM_NAME="${APP_NAME}"
but i get this error when i want to send e-mails.
Connection could not be established with host "mailpit:1025": stream_socket_client(): php_network_getaddresses: getaddrinfo for mailpit failed:
what can i do to solve this problem?
I already change .env file but still got the same error.
If you have windows system and you are not using laravel sail, then your mail config of .env file should look like this.
open localhost:8025 on browser after running mailhog.exe as an admin.
you can install the same from below link
https://github.com/mailhog/MailHog/releases