Is it possible to use jquery in Postal ASP. Net emails

58 Views Asked by At

Im trying to load a header from a html file into the html view that I want to populate with data using Postal. However this doesn't seem to be working even though I'm sure my code is syntactically correct. Everything gets returned in the email correctly except the header so I was wondering is this because of jquery?

Here is what the code basically looks like. Any advice would help. Thanks!

    <html>
    <head>

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
    $(function() {
        $("#includHeader").load("header.html");
    });

</script>
</head>
<body>
    <div id="includHeader"></div>
    <!--Fill in data-->
</body>
</html>
1

There are 1 best solutions below

0
On

Like in a web page, execution of JavaScript is the responsibility of the client, not the server. There is no guarantee that the mail-reader client will--or even have the ability to--execute any JavaScript code.