Last modified: 2010-05-15 15:41:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T8659, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 6659 - Email functionality fails
Email functionality fails
Status: RESOLVED DUPLICATE of bug 4979
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.7.x
PC Windows Server 2003
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

Description Carl Duisberg 2006-07-13 04:18:02 UTC
Software Used:
MediaWiki 1.7.1
PHP 5
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 <user@domain.com>>
From:<name <user@domain.com>>

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

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
(ftp://ftp.rfc-editor.org/in-notes/rfc821.txt), 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.


Navigation
Links