diff --git a/gso/services/mailer.py b/gso/services/mailer.py index 760d4c76c4fb25c6e5e4344b784bd8db82e88a9e..c98ae7f8b108a82b7de4425b4b4fecfca13907f7 100644 --- a/gso/services/mailer.py +++ b/gso/services/mailer.py @@ -7,19 +7,18 @@ from ssl import create_default_context from gso.settings import load_oss_params -def send_mail(recipients: str, subject: str, body: str) -> None: +def send_mail(subject: str, body: str) -> None: """Send an email message to the given addresses. Only supports STARTTLS, not SSL. - :param str recipients: The destination addresses, comma separated. :param str subject: The email subject. :param str body: The contents of the email message. """ email_params = load_oss_params().EMAIL msg = EmailMessage() msg["From"] = email_params.from_address - msg["To"] = recipients + msg["To"] = email_params.notification_email_destinations msg["Subject"] = subject msg.set_content(body)