Last modified: 2010-05-15 15:59:43 UTC
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; } }
Please update to a more recent version of MediaWiki like 1.13.4. UserMailer.php has changed since 1.11.2.
Marking as INVALID. UserMailer::send() should return true on success or a WikiError on failure, not a String. See r30896 for more info.