Support from Acquia helps fund testing for Drupal Acquia logo

Comments

henrikenji created an issue. See original summary.

henrikenji’s picture

Just removed the code that forced to 'site_mail' variable to be always 'From' header

henrikenji’s picture

Status: Active » Needs review
DamienMcKenna’s picture

Is this a (partial) duplicate of #1686588: Use From address properly?

theterencechan’s picture

With 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.

djpable’s picture

I 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 !!

dbiscalchin’s picture

Status: Needs review » Needs work

Moving to "Needs work", because both "Sender" and "Return-Path" headers should be set to the "From" value provided in the module settings.

dbiscalchin’s picture

This 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.

dbiscalchin’s picture

Status: Needs work » Needs review
nileshlohar’s picture

Status: Needs review » Needs work

The last submitted patch, 10: site_mail_variable-2714749-10.patch, failed testing.

nileshlohar’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
FileSize
1.54 KB

Re-rolling it.

jrochate’s picture

Thanks! 7.x-1.x patch works flawless.

jrochate’s picture

Well, 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.

dawehner’s picture

Status: Needs work » Needs review
FileSize
610 bytes

Here is a patch which seemed to do something similar in D8.

Status: Needs review » Needs work

The last submitted patch, 15: 2714749-15.patch, failed testing. View results

dawehner’s picture

FileSize
997 bytes

This still had issues with the 'Sender' header.

dawehner’s picture

FileSize
656 bytes

Oops, it contained the .patch file.

andypost’s picture