Closed (fixed)
Project:
Mailer Plus (DSM+)
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 May 2022 at 12:38 UTC
Updated:
28 Aug 2022 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
adamps commentedComment #3
gilbertdelyon commentedFinally I could make it work !
D9.3.1
Symfony dev version
Test1: Mailer Policies: native settings
without copy to user:
Doesn't work at all
Warning message:
An email must have a "To", "Cc", or "Bcc" header.with copy to user:
Message to site Doesn't work
Message to user works
Warning message:
An email must have a "To", "Cc", or "Bcc" header.Test2: Mailer Policies: I add à "To" field in "contact Form message " policy.
It works! No more warning.
If you go to admin>site structure>contact forms you can see a native "to" email adress in regard with current contact form.
If you open the setting page of this form you can read the following in "MAILER POLICY" area:
Configure Mailer policy records to customise the emails sent for Contact form. You can set the Subject, Body, To and more. .
Its confusing. Instead we should read "you MUST set To"
Please tell me if I missed something.
Comment #4
adamps commentedThanks I see. Please can you update the issue summary?
This module changes the edit contact form to remove the recipient field and add a mailer policy section. We need the same for the add contact form. The fix belongs in
symfony_mailer_bc_form_alter().Probably we have the same bug for Simplenews newsletter.
True - however this text is automatically generated from the annotation in ContactPageEmailBuilder, see
common_adjusters. I guess the solution is to create arequired_adjustersfield which would generate the text you suggest and raise an error if the adjuster is missing.Comment #5
gilbertdelyon commentedComment #6
gilbertdelyon commentedComment #7
gilbertdelyon commented1/ Summary updated.
2/ Simplenews newsletter ? Not tested, I am not using it.
3/
I am not clever enough in Drupal code to say if this is the right way. My idea would be to simply pick up the "To" adress from the native Drupal form setting. (may be too simplistic !)
Comment #8
adamps commentedHere is a patch that alters the 'add' form.
Comment #9
adamps commentedI created a new issue #3303340: Add support for required config as a follow-on task
Comment #10
adamps commented