Problem/Motivation
We have many ECA email actions that builds recipient string for easy_email, by looping each email like this: [email]; [emails] where emails was initialized as an empty string in ECA. This results in a tailing semicolon and space. While I manage to change all semicolons to commas (thanks to the fix for issue 3254085 we can use comma separated emails reliably), it's cumbersome to add a tamper step for each email recipient string.
Steps to reproduce
Use the above ECA approach to build a to string like "a@example.com, b@example.com, ". Then the system will warn that " " is not a valid email.
Proposed resolution
While is is not an issue of the Symfony Mailer module, trimming the trailing space and comma is helpful for the above use case.
Let me create an issue fork for this one. I would appreciate it if you could consider using it.
Issue fork symfony_mailer-3515427
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
hktang commentedComment #6
hktang commentedComment #7
adamps commentedSure we could do that. All patches go into 2.x now please.
Comment #9
hktang commentedThank you. I added a merge request against 2.x.
Comment #10
hktang commentedComment #12
adamps commentedThanks
Comment #14
hktang commentedI updated the MR so that we can use the patch for version 1.6.x.