hi,anyone

First, please forgive my poor English,Because I am an ordinary person from China,This is my first time here to share my problem, Maybe,Some people may have encountered the same problem, so I want to report this error

I found a phpmailer error code, which lead to the needle caused by an error message 'unknown sender' in Gmail

Wrong file location :/sites/all/modules/phpmailer/includes/phpmailer.drupal.inc line :26

$from = reset(phpmailer_parse_address($message['from']));

I changed like this, it will work:

$from = reset(phpmailer_parse_address($message['headers']['From']));

I hope it is useful

Comments

aviggngyv’s picture

Title: phpmailer bug 导致邮件‘unknown sender’ » phpmailer bug caused the message 'unknown sender'
yonailo’s picture

Yes I can confirm that this is a problem and there is also the same issue with the file mimemail.inc, there it is necessary to replace:

$from = reset(phpmailer_parse_address($message['sender']));

by

$from = reset(phpmailer_parse_address($message['headers']['Sender']));

Hope this helps.

sun’s picture

Status: Active » Postponed (maintainer needs more info)

I think this has been fixed in 6.x-3.x already. Please test and let me know if that is the case, because I actually have no idea why 3.x isn't the recommended release.

oadaeh’s picture

Assigned: aviggngyv » Unassigned
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (won't fix)

This issue is being closed due to Drupal 6 being at the end of its life. If you feel this is still a valid issue for the Drupal 7 compatible branch of this module, feel free to re-open this issue and provide updated information.