zend-mail icon indicating copy to clipboard operation
zend-mail copied to clipboard

Zend mail DKIM failes

Open Jilco opened this issue 6 years ago • 2 comments

DKIM passed with zend previous versions (als on Magento), now dkim failes when using zend. When using Outlook with same SMTP settings, dkim passes.

Code to reproduce the issue

$message = new Message();
        $message->addTo($recipient)
                ->addFrom(****)
                ->setSubject('Maintenanceplus - contact')
                ->setBody($body);
        
        // Send E-mail message (SMTP)
        $transport = new SmtpTransport();
        $options   = new SmtpOptions(array(
                'name'              => 'maintenanceplus.nl',
                'host'              => 'mail.maintenanceplus.nl',
                'port'              => 587,
                'connection_class'  => 'login',
                'connection_config' => array(
                    'username' => *,
                    'password' => *
                    'ssl' => 'tls'
                ),
            ));
        $transport->setOptions($options);
        $transport->send($message);

Expected results

Mail is send to recipent with passed dkim

Actual results

dkim failed with zend, but when sending via outlook (same smtp settings) the dkim passes. Also in my Magento webstore the same happens!

Jilco avatar Sep 13 '19 14:09 Jilco

Some further investigation says that only hotmail has the problem, gmail doesn't fail dkim.

Jilco avatar Sep 16 '19 12:09 Jilco

This repository has been closed and moved to laminas/laminas-mail; a new issue has been opened at https://github.com/laminas/laminas-mail/issues/9.

weierophinney avatar Dec 31 '19 21:12 weierophinney