Skip to content

Support for sending email to multiple recipients.#15

Open
MayeulRousselet wants to merge 2 commits into
masterfrom
feature/support-for-multiple-recipients
Open

Support for sending email to multiple recipients.#15
MayeulRousselet wants to merge 2 commits into
masterfrom
feature/support-for-multiple-recipients

Conversation

@MayeulRousselet

@MayeulRousselet MayeulRousselet commented May 22, 2024

Copy link
Copy Markdown
Contributor

This PR allow to support to send email to multiple recipients.
Supported formats are:
recipient
recipient1, recipient2
["recipient1", "recipient2"]

DISCLAIMER: This PR can't be merged for now as the DSS Notification API, even if it takes an array of recipients to send a email, sends one email to each recipents. With Inline SMTP the behaviour is corrected, the same email is sent to all the recipients


@abstractmethod
def send_email(self, sender, recipient, email_body, email_subject, attachment_files):
def send_email(self, sender, recipiens, email_body, email_subject, attachment_files):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
def send_email(self, sender, recipiens, email_body, email_subject, attachment_files):
def send_email(self, sender, recipients, email_body, email_subject, attachment_files):

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