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: {},\nHTTPSStatusCode: {}'.format(response['MessageId'], response['ResponseMetadata']['RequestId'], response['ResponseMetadata']['HTTPStatusCode']))

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: {},\nHTTPSStatusCode: {}' . format ( response [ 'MessageId' ] , response [ 'ResponseMetadata' ] [ 'RequestId' ] , response [ 'ResponseMetadata' ] [ 'HTTPStatusCode' ] ) )
sends notification through aws ses .