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

Support for sending email to multiple recipients. #15

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

Conversation

MayeulRousselet
Copy link
Contributor

@MayeulRousselet MayeulRousselet commented May 22, 2024

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

@@ -44,10 +44,10 @@ def __init__(self, plain_text):
self.plain_text = plain_text

@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
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