Linked Questions

Popular Questions

I have implemented swiftmailer in laravel 5.6. It was working fine last 2 months. But last 2 days it is not working.

It says:

Connection could not be established with host [php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution #0]

I can't find out what is my problem.

Here is my code:

// mail driver = sendmail
$transport = new \Swift_SmtpTransport('', '587', 'tls');
$transport->setUsername('[email protected]');

$transport->setStreamOptions(array('' => array('allow_self_signed' => true,"verify_peer_name"=>false, 'verify_peer' => false)));

Related Questions