-3

I am sending am email from a C# application which has html and javascript in it. And when I checked the received mail the graphs which should be appearing after the execution of javascript code are not appearing.

I am using outlook to view the email Is there some way to make javascript run in an email on outlook

4
  • I think most email clients filter out JS for security reasons. If you need graphs, embed them as images Commented Jun 5, 2018 at 9:35
  • what kind of js code You're executing in email body? if it's animation You can do it with css. but js is filtered because of security concerns. Commented Jun 5, 2018 at 9:36
  • 1
    most if not all (modern) email clients will refuse to run JavaScript embedded in an email. It's a clear security risk. Did you google this? This question has been asked many times before (on SO and other forums) and the answer is clear... Commented Jun 5, 2018 at 9:36
  • Quentin, wouldn't stackoverflow.com/questions/5193860/add-javascript-in-the-email be a better duplicate? Because it's asking if it's possible to execute JS in emails, not how, and it's not also closed. Commented Jun 5, 2018 at 9:39

1 Answer 1

1

Javascript cannot be used in emails, it's a security issue. Most of the email clients will not execute it and more will take it as an issue and remove it instantaneously.

Instead you should export your graphs as png or jpeg images to integrate them.

Hope it helps.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.