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.)
Comments
Comment #1
kavithad commentedComment #3
kavithad commentedComment #4
kavithad commentedComment #5
john.oltman commentedPlacing in review. "Fixed" implies the patch has been applied to the repo.
Comment #6
john.oltman commentedFix added to 8.x
Use hook_mail_alter to make any changes to email headers for 7.x-1.x version