Page MenuHomePhabricator

Sending email via Gmail bug (and solution): includes/UserMailer.php
Closed, DeclinedPublic

Description

Author: millosh

Description:
I spend a lot of hours while trying to see why my MediaWiki installation is not able to send email via Gmail. I am using 1.18. However, the source of the problem (at least, the source which I detected) didn't change inside of the latest revision.

In short, I replaced:
$headers['Return-Path'] = $from->toString();

($headers['Return-Path'] = $from->address; in current version);

with:
$headers['Reply-To'] = $from->toString();

  • and sending emails via Gmail is working now for me.

Please, check if it's still an issue.


Version: 1.18.x
Severity: normal
Whiteboard: aklapper-moreinfo

Details

Reference
bz37155

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:25 AM
bzimport added a project: MediaWiki-Email.
bzimport set Reference to bz37155.
bzimport added a subscriber: Unknown Object (MLST).

Milos: Were there any specific error messages when trying to send via Gmail?

Replacing

$headers['Return-Path']

by

$headers['Reply-To']

in includes/UserMailer.php looks wrong as there is no check whether ( $replyto ) is even set. See the lines after...

Milos: Were there any specific error messages when trying to send via Gmail?
Is this still a problem?

millosh wrote:

Oh, I finally realized that this is a bug which I reported, not the one which I am following... At the moment, a year later, I am not able to remember the message, but I do remember that some message existed.

Huh... I'll try to check it in the next couple of days, as I am still using the same version of MW on that site.

(In reply to comment #3 by Milos Rancic)

At the moment, a year later, I am not able to remember the
message, but I do remember that some message existed.

Huh... I'll try to check it in the next couple of days, as I am still using
the same version of MW on that site.

Milos: Any news? Which MW version do you run nowadays? If this is not a problem anymore, can this ticket be closed as RESOLVED WORKSFORME?

Unfortunately closing this report as no further information has been provided.

Milos: Please feel free to reopen this report if you can provide the information asked for and if this still happens. Thanks!