-
Notifications
You must be signed in to change notification settings - Fork 139
Closed
Labels
Description
- Anymail version: 4.0
- ESP: SendGrid
- Versions of Django, requests, python: Django 1.11.14, requests 2.18.4, Python 3.6.6
- Exact error message and/or stack trace: SendGrid responds with a HTTP 400.
Basically the merge_data is not used on Dynamic Templates. The context for the templates now needs to be defined in personalizations.dynamic_template_data.
API documentation: https://sendgrid.com/docs/User_Guide/Transactional_Templates/how_to_send_an_email_with_transactional_templates.html#-Send-a-transactional-email
sendgrid-python example: https://github.com/sendgrid/sendgrid-python/blob/master/use_cases/transational_templates.md