Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I updated SMTP module from 7.x.1.4 to 7.x.1.6 version
But when you receive a e-mail, the address from the sender is now replaced by the site name information.
Comment | File | Size | Author |
---|---|---|---|
#10 | smtp_authentication_fromfix.patch | 402 bytes | pub497 |
Comments
Comment #2
vcouver CreditAttribution: vcouver as a volunteer and commentedComment #3
vcouver CreditAttribution: vcouver as a volunteer and commentedComment #4
vcouver CreditAttribution: vcouver as a volunteer and commentedComment #5
vcouver CreditAttribution: vcouver as a volunteer and commentedComment #6
vcouver CreditAttribution: vcouver as a volunteer and commentedWhen I look at my message list in the Inbox,
the header information is shown with the address mail from the sender, with SMTP 7.x-1.4.
That"s OK for me.
But with SMTP 7.x-1.6, the name of the "system administration site" replaces now the address.
Could you please tell me why ?
How can I retreive and see my address in the list ?
PS : When the message is opened, the address of the sender is OK , in SMTP 7.x-1.4 and SMTP 7.x-1.6
drupal 7.53
php 7
mysql 5.0.12-dev
Comment #7
vcouver CreditAttribution: vcouver as a volunteer and commentedI found.
It's in this file : /sites/all/modules/smtp.mail.inc
and "$properfrom" value
SMTP 7.x-1.6 line 136: $properfrom = variable_get('smtp_from', '');
SMTP 7.x-1.4 line 122: $properfrom = variable_get('site_mail', '');
Comment #8
monstrfolk CreditAttribution: monstrfolk commentedSame problem on 7.x-2.x-dev.
Comment #9
pub497 CreditAttribution: pub497 as a volunteer commentedThis is an issue for me as well, going from 1.3->1.6
when using drupal_mail('modulename','key', $to, language_default(), $params, $from) the $from address is never used in the mail, the resulting mail always has the site default email in there
edit:
removing line 140 ($from = $properfrom;) fixed my issue, not sure why $from is being replaced here anyways, that line basically meant the $from that's passed in will always be replaced by 'smtp_from'
Comment #10
pub497 CreditAttribution: pub497 as a volunteer commentedHere it is with that line removed
Comment #11
tclnj CreditAttribution: tclnj commentedExists in 7.x-1.7 as well.
I just commented out lines 136-140 in smtp.mail.inc
// $properfrom = variable_get('smtp_from', '');
// if (!empty($properfrom)) {
// $headers['From'] = $properfrom;
// $from = $properfrom;
// }