(bug 34421) duplicate Subject / wrong To: headers in mail
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 18 Feb 2012 15:34:12 +0000 (15:34 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 18 Feb 2012 15:34:12 +0000 (15:34 +0000)
commit0ffeec1ddd7adbd7a99d43fffd94b69d3f766561
tree2885a6e6bbb5ce7635f52489ff5eeb7ec76cb037
parent9427b08d08fb8896ce19ebd1db27a48f974561e4
(bug 34421) duplicate Subject / wrong To: headers in mail

This fixup our mail sending system which duplicated the Subject and To: header.
In some conditions it used only the email address for the From: field skipping
the username ($dest in old code only contains the email address).

Mails sent to a single recipients will look alike with mail() or PEAR Mail.
For multiple recipients:
 - php mail() will show the recipient email and 'undisclosed-recipients:'
 - PEAR Mail will only show 'undisclosed-recipients:'

Reverts r111820
Follow  r111819
Fixup    r93397
includes/UserMailer.php