[SOLVED] Neos Swiftmailer sendig Issue


(Patric Eckhart) #1

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'

(Soren Malling) #2

From mailguns own documentation [http://blog.mailgun.com/php-how-to-use-mailgun-efficiently/] the port number is 25 and not 2525 - could that be your issue?


(Patric Eckhart) #3

Hi Soren!

Thank you for your answer. Unfortunately, it does not work with other port numbers. I also tried it without mailgun.


(Niklas Droste) #4

“Name does not resolve” intends an error while DNS-Lookup
Does “smtp.mailgun.org” resolve to an IP on your system?



BTW: Is postmaster@sandobxx.mailgun.org correct? There is a typo in “sandbox”


(Patric Eckhart) #5

I must check this.


[SOLVED] Neos CMS and SCSS or LESS