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.
When 'site_mail' variable is not empty, it always override 'From' header
Comment | File | Size | Author |
---|---|---|---|
#18 | 2714749-17.patch | 656 bytes | dawehner |
#17 | 2714749-17.patch | 997 bytes | dawehner |
#15 | 2714749-15.patch | 610 bytes | dawehner |
#12 | site_mail_variable-2714749-12.patch | 1.54 KB | nileshlohar |
#10 | site_mail_variable-2714749-10.patch | 1.5 KB | nileshlohar |
Comments
Comment #2
henrikenji CreditAttribution: henrikenji commentedJust removed the code that forced to 'site_mail' variable to be always 'From' header
Comment #3
henrikenji CreditAttribution: henrikenji commentedComment #4
DamienMcKennaIs this a (partial) duplicate of #1686588: Use From address properly?
Comment #5
theterencechan CreditAttribution: theterencechan commentedWith patch #2, for my webform, the site email become the email address for "on behalf of" my from email address in my webform. I added a sender header to get rid of this as well. The patch was created for the 7.x-1.x version.
Comment #6
djpable CreditAttribution: djpable as a volunteer commentedI think that the correct "From" string should be $from_name that is now unused in mailWithoutQueue() method....
Simplenews
Mime Mail
Mail System
Smtp Authentication
Drupal 7.52
stack is really broken after 7.50 update and Smtp Authentication support 1.4 !!
Comment #7
dbiscalchin CreditAttribution: dbiscalchin commentedMoving to "Needs work", because both "Sender" and "Return-Path" headers should be set to the "From" value provided in the module settings.
Comment #8
dbiscalchin CreditAttribution: dbiscalchin commentedThis patch fixes both "Sender" and "Return-Path" headers. It works on 2.x branch.
I've also removed some code that apparently would never be reached, because $from couldn't be empty at that point.
Comment #9
dbiscalchin CreditAttribution: dbiscalchin commentedComment #10
nileshlohar CreditAttribution: nileshlohar commentedPatch for the latest release.
Comment #12
nileshlohar CreditAttribution: nileshlohar commentedRe-rolling it.
Comment #13
jrochate CreditAttribution: jrochate commentedThanks! 7.x-1.x patch works flawless.
Comment #14
jrochate CreditAttribution: jrochate commentedWell, actually I found that From: is being sent twice on mail headers.
So, some ISP are considering it as non-RFC a rejecting mail (google does).
Had to revert patch, since I didn't find with line was wrong.
Comment #15
dawehnerHere is a patch which seemed to do something similar in D8.
Comment #17
dawehnerThis still had issues with the 'Sender' header.
Comment #18
dawehnerOops, it contained the .patch file.
Comment #19
andypostThis is duplicate of #1686588: Use From address properly