zendframework / zend-mail

Mail component from Zend Framework
BSD 3-Clause "New" or "Revised" License
96 stars 111 forks source link

Zend mail DKIM failes #242

Open Jilco opened 5 years ago

Jilco commented 5 years ago

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 commented 5 years ago

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

weierophinney commented 4 years ago

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.