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.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

maxstarkenburg created an issue. See original summary.

maxstarkenburg’s picture

Issue summary: View changes
bluegeek9’s picture

I 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.

$config['system.mail']['interface']['default']
$config['system.mail']['interface']['webform']
bluegeek9’s picture

Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging SMTP as a favorite on the project page to help others discover it and show your support.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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