raviawasti
1 month ago
333
10
Laravel

How to resolve this issue, in laravel while sending email via mailtrap?

Posted 1 month ago by raviawasti

my .env file

MAIL_DRIVER= smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=f5c0ff3a839095 MAIL_PASSWORD=ffbb5bfbf5fb88 [email protected] MAIL_FROM_NAME=Example

And i am getting this issue

Connection could not be established with host smtp.gmail.net [php_network_getaddresses: getaddrinfo failed: Name or service not known #0]

at Swift_Transport_StreamBuffer->initialize(array('protocol' => 'tcp', 'host' => 'smtp.gmail.net', 'port' => 587, 'timeout' => 30, 'blocking' => 1, 'tls' => true, 'type' => 1, 'stream_context_options' => array()))

Please sign in or create an account to participate in this conversation.