contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
491 stars 213 forks source link

Provide custom attribute with setter/getter to use as custom returnPath (Bounce Return E-Mail ) #8885

Closed fatcrobat closed 6 years ago

fatcrobat commented 6 years ago

Current implementation of Email::sendTo() does not give you any chance to modify the Bouce-Mail returnPath. It would be great if you can provide an public setter and getter to modify a new property named returnPath.

https://github.com/contao/core/blob/4539b50fd849dda41c58cdf0da2230dffd909c94/system/modules/core/library/Contao/Email.php#L494

sentTo could be changed to:

$this->objMessage->setReturnPath($this->strReturnPath?:$this->strSender);
leofeyer commented 6 years ago

See contao/core-bundle#1543.

leofeyer commented 6 years ago

Contao 3 is in the "security fixes only" phase of the long term support phases, so we will not add new features or fix non-security bugs anymore.