< Manual:Hooks 
 
      | UserMailerChangeReturnPath | |
|---|---|
| Available from version 1.24.0 (Gerrit change 138655) Called to generate a VERP return address when UserMailer sends an email, with a bounce handling extension. | |
| Define function: | public static function onUserMailerChangeReturnPath( $to, &$returnPath ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"UserMailerChangeReturnPath": "MyExtensionHooks::onUserMailerChangeReturnPath"
	}
}
 | 
| Called from: | File(s): mail/UserMailer.php | 
| Interface: | UserMailerChangeReturnPathHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:UserMailerChangeReturnPath extensions.
Hook to generate custom variable envelope return path address (VERP address) for 'Return-Path'. Called to generate a VERP return address when UserMailer sends an email, with a bounce handling extension.
Details
- $to: Array of MailAddress objects for the recipients
- &$returnPath: The return address string
See also
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.