- Issue created by @pvbergen
- πΊπΈUnited States jrockowitz Brooklyn, NY
Should this be part of #3260134: Add EmailBuilder for Webform β ?
- π¨πSwitzerland pvbergen
@jrockowitz
I'm a bit unsure with symfony_mailer, so I can't tell, what approach is best.Thinking about it, I realize that my adjuster should go into drupal/symfony_mailer.
It just takes the first from address and sets it as a sender, which might be a broader use case.
The WebformEmailBuilder from #3260134 should go into drupal/webform, as it is opinionated towards webform.I adjusted this issue to be in Symfony Mailer.
- Status changed to Postponed: needs info
11 months ago 5:01pm 10 February 2024 - π¬π§United Kingdom adamps
AFAICS Core MailManager sets Sender to site mail. I can't find any reference to Sender in swiftmailer.
This issue similar to β¨ Allow to customize Sender Active , especially see #2 for explanation of why in general it's not a good idea to set sender based on from.
- Status changed to Needs review
11 months ago 2:23pm 13 February 2024 - π¨πSwitzerland pvbergen
@AdamPS:
Thanks for the feedback. I didn't see #3388651 before but I also think it addresses another, more global request.Using this adjuster would allow finegrained control which mails the sender should be overwritten for.
This would leave the default implementation with their valid concerns unaffected while still allowing site builders to specifically select exceptions.We often have projects where we use different sender addresses (using the same domain) on webforms becaus of (strong) client request and this would allow us to fulfill this request without custom code. I also argue that webform mails are not in the same class as general site notifications and can fulfill very different purposes.
Sidenote: Fixed the typo in my class.
- π¬π§United Kingdom adamps
Thanks for the update - I understand your point however it's not the same as the original ISπ.
As you say this seems like a bit of a specialised situation. I am concerned that many simple site-owners could be confused by this adjuster and perhaps use it incorrectly causing their emails to bounce. Perhaps it belongs back in Webform module after all??
- π¬π§United Kingdom adamps
β¨ Allow to customize Sender Active seems like a better UX to me. What do you think?
- Status changed to Needs work
9 months ago 4:14pm 14 April 2024 - π¬π§United Kingdom adamps
Or we could add a setting on from adjuster "also use as sender" (causes error if there is more than one from)?
I propose we should have a description that explains:
- by default the sender address comes from "Basic site settings" and normally you wouldn't change it
- ensure this server is authorised to send from the specified address to help prevent emails being flagged as spam