django-ptrack icon indicating copy to clipboard operation
django-ptrack copied to clipboard

how to use it with emails?

Open kalsky opened this issue 5 years ago • 1 comments

Hi

Can you add some more information in the readme about how to use it for emails? If I understand correctly, I can do something like:

from ptrack.templatetags.ptrack import ptrack
img_tag = ptrack(key1='aaa',key2='ccc')

and then I can add the img_tag to the email body. Is there a different way to do that?

kalsky avatar Feb 19 '20 07:02 kalsky

Are you using Django templates to render your emails? If so you can use the same instructions as the readme describes here: https://github.com/indeedeng/django-ptrack#using-ptrack

russelljk avatar May 21 '21 15:05 russelljk