Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How to preserve code in email notifications?
The <style>
and <script>
tags, among many other xml tags, are being removed in the email. Is there a way to preserve them?
0
Best Answer
-
Todd Vanilla Staff
So in your example your email has a
<script>
"tag" rather than a<script>
tag. No big deal, but usually when one uses the term<script>
one is usually referring to something that actually executes javascript which is something that absolutely has no business in an email.At any rate, Vanilla doesn't send html email right now and we don't have any timeline.
0
Answers
bump, anyone?
We don't have this right now because it's a big hassle. I don't think you'll ever get
<script>
tags in an email though haxx0r.But I am able to send code with
<script>
tags via Gmail. There should be a way. Hmm... thanks anyway Todd.We have no issue with this on our non vanilla sites, i would reccomend though. Inline styling.
Js isnt supported in any emails i know of, but php can be parsed prior to sender functions.
There was an error rendering this rich post.
Think again! This is a screenshot of the email notification I received from Google Groups:
While I do realize that the 'post reply via email' feature is a huge head-bang-bang for you, I just hope it makes it to the self-hosted forums at some point (and we don't have to wait for years).
You need proper resources to support this. Just bunging it in there is a bad idea.
grep is your friend.
You're example isn't a script tag in an email, right?
@Todd : (I don't understand exactly what you meant.) That screenshot is from my Gmail account.
So in your example your email has a
<script>
"tag" rather than a<script>
tag. No big deal, but usually when one uses the term<script>
one is usually referring to something that actually executes javascript which is something that absolutely has no business in an email.At any rate, Vanilla doesn't send html email right now and we don't have any timeline.
I am learning JS and PHP, so once I get to some level of proficiency in them (hopefully in a few months), I will see if something can be done about it. :-)