Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django: unable to set campaign when using EmailMessage object #136

Closed
andyzickler opened this issue Feb 1, 2017 · 0 comments
Closed

Django: unable to set campaign when using EmailMessage object #136

andyzickler opened this issue Feb 1, 2017 · 0 comments

Comments

@andyzickler
Copy link
Contributor

I'm trying to send an email with a campaign id using a EmailMessage object as follows:

msg = EmailMessage(
    subject='Test Campaign',
    to=['test@test.com']
)
msg.template = 'test-template'
msg.substitution_data = substitution_data
msg.campaign = 'test-campaign'
msg.send()

Viewing the message in the SparkPost Dashboard, I can see the template and data are set, but the campaign remains empty. Following #107, it looks like the problem is in the SparkPostMessage class. substitution_data, template are copied there, but not campaign.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant