Re: Templating problem: equal symbol "=" escaped to "=3D"
Try it and see!
Malcolm
On Thu, Jan 21, 2010 at 4:05 PM, Enrico Sartorello <enrico.sartorello@gmail.com> wrote:
Ok maybe I got it.
I found those "=3D" symbols just looking at the output of the Python SMTP server that simulates the email process.
I think that those mime escaped characters will be correctly converted back to "=" symbols when processed by a mail client.
Am I correct?--On Thu, Jan 21, 2010 at 4:49 PM, Enrico Sartorello <enrico.sartorello@gmail.com> wrote:
You're right, it's the mime escaping!
In order to send emails I simply use:
render_to_string(file)
send_mail(....)
How can I send plain text messages with '=' symbols without getting it escaped?
On Thu, Jan 21, 2010 at 4:20 PM, Malcolm Box <malcolm.box@gmail.com> wrote:
--Are you sure it's django templates that are doing the escaping? =3D is
the mime escaping for = - could it be something else in your email
processing chain that's escaping the sign?
Malcolm
--
On 1/21/10, Enrico Sartorello <enrico.sartorello@gmail.com> wrote:
> Hi,
> i'm using Django template system to render some text files (not HTML pages)
> that I use to send emails.
>
> I have a problem: in a template file, any occurence of the "=" symbol is
> escaped to "=3D" no matter what is placed before or after it.
> '=' is strangely escaped to '=3D' even if autoescape is off or the
> containing string is marked with 'safe' filter.
>
> What's wrong with that?
>
> Please help me because I've lost a lot of time trying to solve this issue!
>
> Thanks in advance :-)
>
> --
> Enrico Sartorello
>
Sent from my mobile device
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
Enrico Sartorello
Enrico Sartorello
--You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home