$prefsTitle = Title::newFromText( 'Preferences', NS_SPECIAL );
// Add a standard footer
- $this->text = $this->text . "\n" . wfMsg( 'emailuserfooter', array( $wgSitename, $prefsTitle->getFullURL() ) );
-
+ $footerArgs[0] = $wgSitename;
+ $footerArgs[1] = $from->name;
+ $footerArgs[2] = $to->name;
+ $footerArgs[3] = $prefsTitle->getFullURL();
+ $this->text = $this->text . "\n" . wfMsg( 'emailuserfooter', $footerArgs );
+
if( wfRunHooks( 'EmailUser', array( &$to, &$from, &$subject, &$this->text ) ) ) {
if( $wgUserEmailUseReplyTo ) {