simple_email_service

class aitoolbox.cloud.AWS.simple_email_service.SESSender(sender_name, sender_email, recipient_email, aws_region='eu-west-1')[source]

Bases: object

AWS Simple Email Service sender

Used for sending email notifications about the progression of the training.

Parameters:
  • sender_name (str) – Name of the email sender

  • sender_email (str) – Email of the email sender

  • recipient_email (str) – Email where the email will be sent

  • aws_region (str) – AWS SES region

send_email(subject, body, attachment_file_paths=None)[source]

Send email text with optional attachments

Parameters:
  • subject (str) – email subject

  • body (str) – HTML body of the email

  • attachment_file_paths (list or None) – list of local paths pointing to the email attachment files

Returns:

None