Hey guys,
Sending with Neos Swiftmailer don’t work.
I get: Connection could not be established with host [php_network_getaddresses: getaddrinfo failed: Name does not resolve #0]
But over simple curl, it works.
$mail = new \Neos\SwiftMailer\Message();
$mail->setFrom(array($senderMail => $senderName))
->setTo(array($adminMail => $adminName))
->setSubject($mailSubjectPrefix.': '.$subject)
->setBody($mailbody, 'text/html')
->send();
Settings.yaml
Neos:
SwiftMailer:
transport:
type: 'Swift_SmtpTransport'
options:
host: 'smtp.mailgun.org'
port: 2525
username: 'postmaster@sandobxx.mailgun.org'
password: 'sdfsdfdf'