Created
June 26, 2019 11:59
-
-
Save cgi-caesar/482b7a47563231699bd13b596121415f to your computer and use it in GitHub Desktop.
aMember (site.php): Set Return-Path for all Emails from aMember
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Am_Di::getInstance()->hook->add([Am_Event::MAIL_TEMPLATE_BEFORE_PARSE, Am_Event::MAIL_SIMPLE_TEMPLATE_BEFORE_PARSE], function(Am_Event $e) { | |
$e->getMail()->setReturnPath('[email protected]'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment