Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOTA-677 add method to send mail to users in bcc #50

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

PetraMiseta
Copy link
Contributor

No description provided.

* @param array<string, mixed> $parameters
* @param string|string[]|null $sender
*/
public function sendGroupMail(array|string $bcc, string $subject, string $template, array $parameters = [], array|string|null $sender = null): void
Copy link
Member

@emodric emodric Feb 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I would do here is not add a sendGroupMail that only sends to bcc, but add two new parameters at the end of sendMail method ccReceivers and bccReceivers which can then be used in conjuction with regular receivers.

It's a pretty common usecase to have a regular receiver and then a list of ccs and bccs.

This way, we would not have to hardcode that the sender is also a receiver, which is fine in itself, but not always.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants