How can I send the HTML content in an email using Python? I can send simple text.
Here is my answer for AWS using boto3
subject = "Hello"
html = "Hello Consumer"
client = boto3.client('ses', region_name='us-east-1', aws_access_key_id="your_key",
aws_secret_access_key="your_secret")
client.send_email(
Source='ACME ',
Destination={'ToAddresses': [email]},
Message={
'Subject': {'Data': subject},
'Body': {
'Html': {'Data': html}
}
}