https://bugzilla.wikimedia.org/show_bug.cgi?id=17455
Summary: Could not send confirmation mail. Check address for
invalid characters. Mailer returned: 1
Product: MediaWiki
Version: 1.11.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: Email
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
On ubuntu 8.04:
Mediawiki version: 1:1.11.2-2ubuntu0.2
======Description ============
With email confirmations enabled it will send out an confirmation email on
account creation. However, after account creation an error message displays:
'Could not send confirmation mail. Check address for invalid characters. Mailer
returned: 1'
The mail is sent properly despite the error message.
======Analysis================
UserMailer::userMailer is expected to return '' on success and [error message
as a string] on error.
But, according to the pear api: ->send returns true on success and e Pear_error
oject on failure
see: http://pear.php.net/manual/en/package.mail.mail.send.php
======Workaround=============
Edit mediawiki/includes/UserMailer.php:154
== previous code ==
else
return $mail_object->send($dest, $headers, $body);
===================
== workaround =====
else {
$e = $mail_object->send($dest, $headers, $body);
if ( $e == true ) {
return '';
} else {
return $e;
}
}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l