* Now grabs message from global language instead of user's UI lang.
* Added a separator between msg and footer
* Shortened message
* Removed a bunch of useless params from the previous incarnation of this.
$from = new MailAddress( $wgUser );
$subject = $this->subject;
- $prefsTitle = Title::newFromText( 'Preferences', NS_SPECIAL );
+ // Add a standard footer
+ $this->text = $this->text . "\n ---- \n" . wfMsgForContent( 'emailuserfooter', array( $from->name, $to->name ) );
if( wfRunHooks( 'EmailUser', array( &$to, &$from, &$subject, &$this->text ) ) ) {
'emailccsubject' => 'Copy of your message to $1: $2',
'emailsent' => 'E-mail sent',
'emailsenttext' => 'Your e-mail message has been sent.',
+'emailuserfooter' => 'This e-mail was sent by $1 to $2 by the "Email user" function at {{SITENAME}}.',
# Watchlist
'watchlist' => 'My watchlist',