import boto3 def send_email(rcpt, sender, subject, message): """Send email Args: rcpt (str): recipient of the email. sender (str): sender of the email. subject (str): subject of the email. message (str): body of the email. """ client = boto3.client('ses') client.send_email( Source=sender, Destination={ 'ToAddresses': [ rcpt, ] }, Message={ 'Subject': { 'Data': subject, 'Charset': 'utf-8' }, 'Body': { 'Html': { 'Data': message, 'Charset': 'utf-8' } } }, ReplyToAddresses=[ sender ] )