Last modified: 2010-05-15 15:38:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2105 - Any mediawiki mail functions are potentially blocked by missing "space"in php mail() call in UserMailer::userMailer()
Any mediawiki mail functions are potentially blocked by missing "space"in php...
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Highest critical with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
Blocks: 454 2014
  Show dependency treegraph
Reported: 2005-05-08 05:56 UTC by T. Gries
Modified: 2010-05-15 15:38 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description T. Gries 2005-05-08 05:56:17 UTC
Any mail function within MediaWiki (mail a new password, email user, confirm
email, ENotif) is potentially(*) broken in a certain php version [1] due to a
missing space. This has been reported by a user.

Fix by adding an additional space after the "-f" option letter.

Example 3 in [2], which was used when implementing this in UserMailer.php, does
not show the space, but it helped to get a touchy php mail() implementation running.

Therefore I suggest to change line 132 in UserMailer.php from
 mail( wfQuotedPrintable_name_and_emailaddr($to), $subject, $body, $headers,
 mail( wfQuotedPrintable_name_and_emailaddr($to), $subject, $body, $headers, "-f

[1] PHP: 4.3.10 (apache)
Comment 1 Anders Wegge Jakobsen 2005-05-22 08:32:47 UTC
Not a PHP problem, but a problem with some implementations of the sendmail
executable. Fixed in HEAD.

Note You need to log in before you can comment on or make changes to this bug.