dotmailer / dotmailer-magento2-extension

The official Dotdigital for Magento2 extension
https://dotdigital.com/integrations/magento
MIT License
49 stars 63 forks source link

Add name key to helper's Transport Configuration #440

Closed navarr closed 7 years ago

navarr commented 7 years ago

When we eventually get down to Magento's \Zend_Mail_Transport_Smtp::_sendMail, you'll see it calls $this->_connection->helo($this->_name).

If name is not passed in the transport config, it assumes a name of localhost, and attempts to connect to that to send the HELO.

This is occurring in Magento 2.1.4

cdiacon commented 7 years ago

Hey @navarr ,

We don't require for (HELO = SMTP, EHLO = ESMTP which is Extended) to send the hostname and it's k to have the "localhost" as the name.

Thanks for sending this!