Problem/Motivation
Filing this as a "support request" since I'm not fully sure if the behavior differences I'm seeing are a feature, or bug, or a little of both. (Additional context: I didn't configure any of this originally, but I'm tasked with updating dependencies on our sites, so whatever changes are happening as a result of updates, I may need to adjust config to match client expectations/needs.)
Steps to reproduce
An email configured in webform with "From" values using the webform defaults (i.e. "From email" of [site:mail] and "From name" of [site:name]) would:
- in 1.0 get sent From:
Site Name As Set In /admin/config/system/site-information <address.as.also.set.in.site.settings@example.com> - in 1.2 get sent From:
Site Name As Set In /admin/config/system/site-information <but.address.as.set.in.smtp.module.config@example.com>
Emails sent for account creation or core contact forms, on the other hand, seem to be sent From: From Name As Set In /admin/config/system/smtp <address.as.also.set.in.smtp.module.config@example.com> in both versions of smtp.
Proposed resolution
I don't know if I'm interpreting correctly from #3308735: Use from address set in config for all emails, for example, that expected behavior is that smtp module settings (as opposed to site settings) should always "win out", including in webform emails, and perhaps the "From Name" simply got overlooked in recent 1.2 fixes?
If that's the case, I also wonder if a new issue might be warranted in webform to potentially help with the "these tokens you think you're choosing might not reflect what you expect [if you've got smtp on your site, or at least as of 1.2]" aspect.
Comments
Comment #2
maxstarkenburgComment #3
bluegeek9 commentedI am not sure how much help this will be three years later.
In Drupal, mail is complicated. In Drupal 10.2 mail was changed. #3424400: Deprecate module in favor of core's built in SMTP mail handling capabilities offered in 10.2.x
I have no idea what changed between the Webform 1.1 and 1.2.
I believe the webform has its own mail interface. Maybe that is the changed.
Comment #4
bluegeek9 commented