zendframework / zend-mail

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

Return-Path Email is not used #215

Open Filipe-Bicho opened 6 years ago

Filipe-Bicho commented 6 years ago

Description

E-mail Return-Path is not set correctly because it only uses the last forced e-mail address, so as workaround I implemented this code change to give priority to the e-mail address that is already stored in the parameters and therefore the return path mail will be set correctly.

E.g. $parameters = " '-f test1@mail.com' '-f test2@mail.com'"; It will use 'test2@mail.com' as return path email.

Magento 2.3.0 Alpha: steps to reproduce

 1 - Admin store: Stores > Settings > Configuration > Advanced > System > Mail Sending Settings > Return-Path Email - set a different return path email
 2 - Place an order
 3 - Look for ´Return-Path: <new return path email>' in the email
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/27.

weierophinney commented 4 years ago

This repository has been moved to laminas/laminas-mail. If you feel that this patch is still relevant, please re-open against that repository, and reference this issue. To re-open, we suggest the following workflow: