code: def send_email_ses(sender, subject, message, recipients, image_png):
      
      from boto3 import client as boto3_client
  
      client = boto3_client('ses')
  
      msg_root = generate_email(sender, subject, message, recipients, image_png)
      response = client.send_raw_email(Source=sender,
                                       Destinations=recipients,
                                       RawMessage={'Data': msg_root.as_string()})
  
      logger.debug(("Message sent to SES.\nMessageId: {},\nRequestId: {},\n"
                   "HTTPSStatusCode: {}").format(response['MessageId'],
                                                 response['ResponseMetadata']['RequestId'],
                                                 response['ResponseMetadata']['HTTPStatusCode']))
docs: Sends notification through AWS SES.
  
      Does not handle access keys.  Use either
        1/ configuration file
        2/ EC2 instance profile
  
      See also https://boto3.readthedocs.io/en/latest/guide/configuration.html.