Any example of how to send an email with a pinpoint api template in AWS for Python?
I am trying the example https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/pinpoint-email.html#PinpointEmail.Client.send_email but I am not successful
Finally i use
client = boto3.client('pinpoint-email', region_name=AWS_REGION)
response = client.send_email(
FromEmailAddress='SENDER',
Destination={
'ToAddresses': ['TOADDRESSES']
},
Content={
'Template': {
'TemplateArn': TEMPLATE_ARN,
"TemplateData": json.dumps(TEMPLATE_DATA)
}
}
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.