I am using django core mail package with Postal. I am able to send messages via Postal. This was quick to setup and work, so thats great.
I am not able to set the tags in the email through the library by either doing message.__set_attr or by sending 'tag'
I see that there is no python integration provided. Any reason why you have not been able to support python or its supported frameworks?
Will be extremely thankful if you can help me out with this.
Interesting, I seem to remember someone else having problems with this but couldn't find it again. Are you able to share your code?
I assume python hasn't been anyones speciality that has been involved with Postal so far so it hasn't been made. If you're able to create a python library, that would be cool.
FYI, I'm using postal+django with a self-written extension for django-anymail. I have plans to eventually get the extension merged, but there's still some stuff missing: https://github.com/anymail/django-anymail/pull/166
It should support tags already, but I didn't test that yet.
Not sure if that's interesting to you, I guess you are going the SMTP route with django core mail?
@willpower232 - I figured it out. I was sending the extra headers with key name as 'tag' or 'tags'. But if I send it as 'x-postal-tag', it works.
The Postal UI is able to map it.
Thanks for letting us know, feel free to close the issue if its all sorted.
Closing the issue. Thanks for all the responses.
Most helpful comment
@willpower232 - I figured it out. I was sending the extra headers with key name as 'tag' or 'tags'. But if I send it as 'x-postal-tag', it works.
The Postal UI is able to map it.