Skip to content

Django backend -unable to use templates and substitution_data #107

Closed
@J0hnyBrav0

Description

@J0hnyBrav0

While using EMAIL_BACKEND = 'sparkpost.django.email_backend.SparkPostEmailBackend' and creating a message like this:

 msg = EmailMultiAlternatives(
    to=to_list
  )
  msg.template = template
  msg.substitution_data = substitution_data

I've encountered several problem with missing params. After debugging I've found out that template and substitution_data are ignored. becasue they are not considered as a part of SparkPostMessage class. As result _send(self, message) in SparkPostEmailBackend is also ignoring those params.

If it's not a bug, then please provide an explanation in documentation how to use SparkPostEmailBackend and send emails using substitution data and templates.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions