Problem/Motivation

Outlook puts the Drupal admin email in the From line and says "on behalf of (submitter name and email)", however in Gmail it works fine.

Proposed resolution

The $from parameter will only alter the From header, not the Sender, Errors-to or Return-Path of the drupal_mail function that is used by form submit function. Since Sender and From headers don't match, email clients read "on behalf of".
Proposed solution would be to rewrite the headers in hook_mail() function.

Original report by [username]

(Text of the original report, for legacy issues whose initial post was not the issue summary. Use rarely.)

CommentFileSizeAuthor
#1 forward-2511900.patch752 byteskavithad

Comments

kavithad’s picture

Status: Active » Fixed
StatusFileSize
new752 bytes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kavithad’s picture

kavithad’s picture

john.oltman’s picture

Status: Closed (fixed) » Needs review

Placing in review. "Fixed" implies the patch has been applied to the repo.

john.oltman’s picture

Version: 7.x-1.4 » 8.x-1.x-dev
Status: Needs review » Fixed

Fix added to 8.x
Use hook_mail_alter to make any changes to email headers for 7.x-1.x version

  • john.oltman committed 34ad5b2 on 8.x-1.x
    Issue #2511900 by kavithad: Sender and From headers mismatched
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.