Skip to content

Instantly share code, notes, and snippets.

@cgi-caesar
Created June 26, 2019 11:59
Show Gist options
  • Save cgi-caesar/482b7a47563231699bd13b596121415f to your computer and use it in GitHub Desktop.
Save cgi-caesar/482b7a47563231699bd13b596121415f to your computer and use it in GitHub Desktop.
aMember (site.php): Set Return-Path for all Emails from aMember
<?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