Last modified: 2010-05-15 15:41:06 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 6659 - Email functionality fails
Email functionality fails
Status: RESOLVED DUPLICATE of bug 4979
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
PC Windows Server 2003
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-07-13 04:18 UTC by Carl Duisberg
Modified: 2010-05-15 15:41 UTC (History)
0 users

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


Description Carl Duisberg 2006-07-13 04:18:02 UTC
Software Used:
MediaWiki 1.7.1
Windows Server 2003

With unchanged coding the all mailing functions fail with an error from the SMTP
server saying the mail addresses cannot be parsed.

The SMTP protocol shows that PHP is sending the following lines:

To:<name <>>
From:<name <>>

UserMailer.php describes:
From the PHP manual:
Note:  The to parameter cannot be an address in the form of "Something
The mail command will not parse this properly while talking with the MTA.

I recommend the following:

For the "To" and the "From" field use only the email-address without name.
In the Body of the message add a Header "From" with content "name <user@domain>.
For documentation refer to RFC 821
(, example 7.

The relant coding is in UserMailer.php.

As a short cut bug fix in my installation I changed class MailAdress, function
toString to return the email-adress only.
Comment 1 Rob Church 2006-07-13 09:51:15 UTC

*** This bug has been marked as a duplicate of 4979 ***

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