Skip to content
Snippets Groups Projects

Feature/send validation emails

Merged Karel van Klink requested to merge feature/send-validation-emails into develop
All threads resolved!
1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
+ 2
3
@@ -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)
Loading