devctrl.utility.email.send_email#

send_email(task: SendEmailTask, sender: SmtpSettings, timeout_s: float = 5.0)[source]#

Send an email using the provided task and sender configuration.

The email is formatted using python’s email library and sent using the smtplib library.

Parameters:
  • taskSendEmailTask containing subject, message, and recipients.

  • senderEmailSender with SMTP configuration and sender email.