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

Send html code in data field in Transactional template #2140

Open
Intrudr-Sec opened this issue Nov 5, 2024 · 2 comments
Open

Send html code in data field in Transactional template #2140

Intrudr-Sec opened this issue Nov 5, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Intrudr-Sec
Copy link

I want to send json data with html tag to transactional template

when i try, all the < > and " are convert to
<span class="p2">

the content_type is "html"

the looking in the email is what i expect, but not format as i want.
the main goal, is we send email to manager and list user belong to them

my script work as expect, only the looking is wrong

thanks for any help

@knadh
Copy link
Owner

knadh commented Nov 5, 2024

hm, sorry, I'm unable to understand the problem you're facing. Please explain what you're doing and share samples of the JSON you're posting and the HTML template you're rendering.

@knadh knadh added the question Further information is requested label Nov 5, 2024
@Intrudr-Sec
Copy link
Author

i use the template id 3 "Sample transactional template" for test.

instead of query my SQL DB, i use a file data.json to test my script.
my script in pyton test_manager it's use for.

image

data.json
test_manager.txt

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

No branches or pull requests

2 participants