You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.
I'm wanting to use the Decorator plugin to send out mails to a mailing list. I don't want the members of the mailing list to see the email addresses of other members, but it looks like the Decorator plugin only processes the To recipients. Shouldn't it process BCC recipients as well?
The text was updated successfully, but these errors were encountered:
makasim
pushed a commit
to formapro-forks/swiftmailer
that referenced
this issue
Jul 26, 2017
I found a solution for this issue, try modify the file DecoratorPlugin.php on the path vendor->swiftmailer->lib->classes->swift->plugins->decorator
Replace the line $to = array_keys($message->getTo()); for $to = array_keys($message->getBcc());, I changed it cause I only need the Bcc way to send, but if you need both, try with a if() cheking if addTo is empty or not.
The error message is because always check first the TO way, if you didn't use it (only use Bcc), the swiftMailer catch that message.
I did that but did not work entirely for me as only one email was sent. I discovered that the Decorator was not replacing values in the secondary emails and I believe the server was not sending the same email multiple times.
I'm wanting to use the Decorator plugin to send out mails to a mailing list. I don't want the members of the mailing list to see the email addresses of other members, but it looks like the Decorator plugin only processes the To recipients. Shouldn't it process BCC recipients as well?
The text was updated successfully, but these errors were encountered: