I am using Djrill together with a mailchimp template.
I use this snippet below to push the merge_vars into my template :
msg.global_merge_vars = {
SNAME': fullname, 'SEMAIL': from_email,'SMESSAGE': message
}
The message |SMESSAGE| appears in the email however the line breaks arent preserved. How would I go about keeping the line breaks from my message?
Also please not I cant use {% autoescape on %} method as the template is sent from mailchimp
`'s in your Django code and then use `*|HTML:SMESSAGE|*` in your template (but watch out for script injection!). – ` in your template, or you could encode the message to html with `medmunds Jul 13 '15 at 00:12