* It's using the *sending* user's UI language for the footer, which is not ideal.
* There's no clean separation between body text and footer; the text will run together unappetizingly.
* The default message is really long
* "Sent automatically" implies that it's something like a "this page changed, and the computer is notifying you", but this is an explicit user-to-user messaging action, not automatic at all.
* It's trying to take the 'allowemail' toggle string, which may contain arbitrary HTML, and pop it into a plaintext email. This can cause very ugly output if formatting or character entities are being used in the message string.
$prefsTitle = Title::newFromText( 'Preferences', NS_SPECIAL );
- // Add a standard footer
- $footerArgs[0] = $from->name;
- $footerArgs[1] = $to->name;
- $footerArgs[2] = $prefsTitle->getFullURL();
- $footerArgs[3] = wfMsg ('allowemail');
- $this->text = $this->text . "\n" . wfMsgExt( 'emailuserfooter', 'parsemag', $footerArgs );
-
if( wfRunHooks( 'EmailUser', array( &$to, &$from, &$subject, &$this->text ) ) ) {
if( $wgUserEmailUseReplyTo ) {
'emailccsubject' => 'Copy of your message to $1: $2',
'emailsent' => 'E-mail sent',
'emailsenttext' => 'Your e-mail message has been sent.',
-'emailuserfooter' => 'Sent automatically by {{SITENAME}} to $1 for $2.
-Please note, {{SITENAME}} cannot be held responsible for the content of this email.
-The option to remove yourself from these mailings is in your preferences.
-Check your preferences at $3 and uncheck "$4".',
# Watchlist
'watchlist' => 'My watchlist',