https://bugzilla.wikimedia.org/show_bug.cgi?id=34421
Antoine "hashar" Musso <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #16 from Antoine "hashar" Musso <[email protected]> 2012-02-18 15:37:48 UTC --- Alex: thanks for your patches, that gave me some ideas to properly fix this issue. I have send the change as r111832. Comments inside the source code give some explanations. To: and Subject: headers need to be handled differently depending upon the mailer we are going to use. To: PHP mail() first argument is the mail receiver. The argument is used as a recipient destination and as a To header. PEAR mailer has a recipient argument which is only used to send the mail. If no To header is given, PEAR will set it to to 'undisclosed-recipients:'. NOTE: To: is for presentation, the actual recipient is specified by the mailer using the Rcpt-To: header. Subject: PHP mail() second argument to pass the subject, passing a Subject as an additional header will result in a duplicate header. PEAR mailer should be passed a Subject header. With r111832, 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:' -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
