AWS SES Add Custom Headers to the mail

Viewed 1065

I am trying to send email with AWS SES which,the raw email will be put in the S3, on file lambda will trigger and parse customer headers.

Example:

see picture

How can i add custom headers like X-moto-dealerId : 4324

    client = boto3.client('ses')
response = client.send_email(
    Source=email_from,
    Destination={
        'ToAddresses': [email_to]
    },
    Message={
        'Subject': {
            'Data': 'string',
            'Charset': 'UTF-8'
        },
        'Body': {
            'Text': {
                'Data': generated_adf,
                'Charset': 'UTF-8'
            }
        }

    },

)
1 Answers
Related