Closed (outdated)
Project:
SMTP Authentication Support
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2016 at 21:29 UTC
Updated:
9 Oct 2025 at 22:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
henrikenji commentedJust removed the code that forced to 'site_mail' variable to be always 'From' header
Comment #3
henrikenji commentedComment #4
damienmckennaIs this a (partial) duplicate of #1686588: Use From address properly?
Comment #5
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 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 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 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 commentedComment #10
nileshlohar commentedPatch for the latest release.
Comment #12
nileshlohar commentedRe-rolling it.
Comment #13
jrochate commentedThanks! 7.x-1.x patch works flawless.
Comment #14
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
Comment #20
bluegeek9 commentedUnfortunatly, Drupal 7 is End of Life and no longer supported. We strondly encourage you to upgrade to a supported version of Drupal.