Skip to content

Make MessageID accessible via Django backend#88

Closed
brendanwood wants to merge 2 commits intothemartorana:masterfrom
passiv:master
Closed

Make MessageID accessible via Django backend#88
brendanwood wants to merge 2 commits intothemartorana:masterfrom
passiv:master

Conversation

@brendanwood
Copy link
Copy Markdown

It's helpful to be able to log the MessageID for each email sent through the Postmark backend. This pull request introduces a new setting POSTMARK_RETURN_MESSAGE_ID (default False) that instructs the Postmark backend to return the MessageID field from the API response whens sending email.

This pull request is in reference to this open issue: #59

The code solution is based on this commit from andrebaptista's fork: andrebaptista@cc4e813

@nicholasserra
Copy link
Copy Markdown
Collaborator

Seems like this would break on bulk message sending, as the PMBatchMail object doesn't have message_id. Also this only wires into the django backend and not into the core classes?

@brendanwood
Copy link
Copy Markdown
Author

Yeah that's true, I only looked at individual sends using the Django backend.

@nicholasserra
Copy link
Copy Markdown
Collaborator

Implemented this a bit safer with some tests in #89. Thank you for the example and the PR

@brendanwood
Copy link
Copy Markdown
Author

Thank you, glad to hear it!

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

Successfully merging this pull request may close these issues.

2 participants