Closed (won't fix)
Project:
PHPMailer
Version:
6.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2011 at 09:55 UTC
Updated:
18 Mar 2016 at 18:37 UTC
Jump to comment: Most recent
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
Comment #1
aviggngyv commentedComment #2
yonailoYes 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:
by
Hope this helps.
Comment #3
sunI 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.
Comment #4
oadaeh commentedThis 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.