My Website is a shopping website(Currently in Dev)...
Im using a CMS which sends emails to customers after they have made a purchase giving details about their order.
Can i use javascript within the email template to check for a condition.Basically this email will be going out to 'N' number of users and i have a 'X' number of user who should get a slightly modified email based on a condition.
HERE IS THE TEMPLATE.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>
</head>
<body>
BLAH BLAH BLAH
<span style="font-family: arial;">Thank you. Your order is confirmed. Please print a copy for your records.</span>
BLAH BLAH BLAH
</body>
</html>
I understand that most email clients do not support Javascript, So is there any way within the email itself that i can change the contents of the mail based on conditions i choose.