Use from address set in config for all emails

Created on 8 September 2022, over 2 years ago
Updated 25 March 2023, almost 2 years ago

As of the 8.x-1.1 release, the module no longer uses the From address set in config as the From address for all emails the site sends out. This is quite literally what the description of that field says it will do and breaks functionality as a lot of SMTP providers only allow emails to be sent out with the From address set to that of the SMTP account.

This issue was introduced from the patch on #2925878: SMTPMailSystem does not respect $from and $from_name values which has appeared to have introduced a few other issue.

This appears to be an issue on the 7.x branch as well 🐛 Use From address properly Fixed

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇨🇦Canada johnjw59@gmail.com

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy gigiabba

    I totally disagree with this solution! A module should be able to modify the "from header".
    The SMTP module setting for the "from header" should be used only as a fallback, otherwise it overrides the behavior of all modules!

  • 🇨🇦Canada johnjw59@gmail.com

    The point is for it to override the behaviour of all other modules. Some SMTP providers require emails to be sent from a single "From" address. That is also what the field description says it does. If that behaviour isn't wanted, then the field needs to simply be left blank.

Production build 0.71.5 2024