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
- Edit an entities registration settings and set the "From address" field to an email address other than the site email.
- Send out an email registrants.
- Inspect the received email.
Issue fork registration-3490561
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
Comment #2
elimw commentedComment #8
john.oltman commentedThanks 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.
Comment #11
john.oltman commentedI removed setting of the reply-to header since it generally should only be set when it is different from the "From:" address.
Comment #12
john.oltman commented