Problem/Motivation

The "From" header doesn't respect the "From address" registration setting for individual entities. Instead, emails sent out by the "Registration" module are always replaced with the site email address and name.

Steps to reproduce

  1. Edit an entities registration settings and set the "From address" field to an email address other than the site email.
  2. Send out an email registrants.
  3. Inspect the received email.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

elimw created an issue. See original summary.

elimw’s picture

Issue summary: View changes

john.oltman changed the visibility of the branch 3490561-from-address-in-registration-setting-is-overwritten to hidden.

john.oltman changed the visibility of the branch 3490561-from-address-in-registration-setting-is-overwritten to active.

john.oltman’s picture

Title: From address in registration setting is overwritten » Add option to control the "From" mailbox header
Assigned: Unassigned » john.oltman
Category: Bug report » Feature request

Thanks for the post and MR, you are correct, the "from address" is not used currently, since the default mail handler in Drupal core uses the site name and email. This is appropriate for most sites since the site name and email will often be best for email deliverability. However, since there is a "from address" in registration settings, I agree there has to be an option to replace the default behavior in Drupal core for sites that really want to use that instead. I'm going to adjust your MR accordingly.

  • john.oltman committed 96f5d953 on 3.3.x authored by elimw
    #3490561 by elimw: Add option to control the "From" mailbox header
    

  • john.oltman committed 9f7cf2ef on 3.1.x authored by elimw
    #3490561 by elimw: Add option to control the "From" mailbox header
    
john.oltman’s picture

I removed setting of the reply-to header since it generally should only be set when it is different from the "From:" address.

john.oltman’s picture

Assigned: john.oltman » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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