Skip to content

Support for SendGrid new dynamic templates #120

@juliomenendez

Description

@juliomenendez
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions