Hello everyone,
I face an issue with one of my real time template
I input the HTML and when done, I want to check with a seed address the preview to see how it looks like but when previewing, there isn't any display : see screenshot below.
Why is it doing that ? I also try with a simple test HTML, the preview won't show either. (main error is there, not happening with my other templates)
Any idea on how to fix that ? I think there is a reason why when I want to test this real time that I got an error that mention : event not covered.
I make sure that the event type is linked to the template and the template is successfully publish.
Thanks for your solutions.
Kind regards.
Solved! Go to Solution.
Views
Replies
Total Likes
Not sure about the preview, but the error logs clearly show the Event is not covered. Meaning the eventType you are sending to ACC does not match what is listed in the eventType enumeration. Perhaps double check those items and republish.
Not sure about the preview, but the error logs clearly show the Event is not covered. Meaning the eventType you are sending to ACC does not match what is listed in the eventType enumeration. Perhaps double check those items and republish.
Hello, thank you for your answer. Indeed the event was not covered but now, I face this kind of error (which relate to HTML content)
How can I fix this error ? my code include mctx but I don't know what I can do to resolve that (I try without that and the preview is not showing)
Thanks in advance.
Views
Replies
Total Likes
So the error "content htmlContent" means that something in your HTML is not correct. Usually this is because of a personalization tag error <% %> or and If Else statement in javascript. Can you share the code you are using with mctx?
I will share to you in 2 comments (limit of characters)
<!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> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>EVOUCHER</title> <style type="text/css"> .ExternalClass {width:100%;} .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height:100%;} body {-webkit-text-size-adjust:none; -ms-text-size-adjust:none;} body {margin:0; padding:0;} table {border-spacing:0;} table td {border-collapse:collapse;} @media (max-width: 640px) { body { } .inner { width:320px !important;} .none { display:none !important; width:0 !important; } .td_center { text-align:center !important; } .left { align:left !important; } .txt_center { text-align:center !important; background-color:#f6f7fb !important;} .wrap { width:100% !important;} .hide { display: none !important;} .image_320 { width:100% !important; height:50% !important;} .inner_padding { width:320px !important; padding-left:15px !important; background-color:#000000 !important;} .photo_padding { padding-left:0px !important; padding-right:0px !important; padding-top:0px !important;} .menu_padding_2 { padding-right:47px !important; border-collapse:separate !important} .none_img { display:none !important; width:0 !important; } #none_img {display: none !important;} } </style> </head> <% var mctx = alert.ctx ; var destinataire = mctx.destinataire ; var language=destinataire.Language.toString().toUpperCase(); var codes=destinataire.Codes ; var vbody=destinataire.Body; var vvbody=vbody.toString(); var body=vvbody.replace(/[\n\r]/g, '<br />'); %> <body style="background-color:#ffffff;"> <!--VersionFR--> <% if (language == 'FR'){%> <!--Header--> <table style="background-color:#f6f7fb;" width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="inner"> <tr><td style="font-family:Arial,sans-serif; font-size:10px; color:#000000; padding-bottom:10px; padding-top:10px" align="center"><a href="<%@ include view='MirrorPageUrl'%>" target="_blank" style="color:#333333; text-decoration: underline;">Cliquez ici</a> pour visualiser cet e-mail dans votre navigateur</td></tr> <tr> <td style="padding-top:10px"> <table align="left" width="300" border="0" cellspacing="0" cellpadding="0" class="td_center"> <tr> <td width="168" style="color:#FFFFFF; padding-left:40px" ><a href="https://www.izy.com/fr" target="_blank"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/thalys-t/1cad1f0b47e07d28c2154c41c5b324d2.png" alt="IZY" width="132" height="123" border="0"/></a></td></tr></table> <table width="320" border="0" cellpadding="0" cellspacing="0" style="padding-right:20px" align="right" class="hide" valign="top"> <tr> <td style="font-family:Arial,sans-serif; font-size:14px; color:#000000; text-transform:uppercase; font-weight:bold; padding-top:40px" align="center">e-voucher</td></tr></table></td></tr> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-align:justify; padding-top:30px; padding-left:40px; padding-right:20px; padding-bottom:20px"> <span style="color:#5bac26; font-weight:bold">Votre numéro de dossier :<%=destinataire.DossierNumber%></span><br /><br /> Bonjour, <br /><%=body%> <br /><br /> <strong>Votre conseiller IZY</strong></td></tr></table> <!--EVoucher Details --> <table class="inner" width="640" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#f6f7fb;"> <tr> <td width="20" class="hide"></td> <td> <table class="inner" border="0" align="left" cellpadding="0" cellspacing="0" bgColor="#e8e9ed" width="600"> <tr> <td style="background-color:#e8e9ed; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#5bac26; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">activation de votre e-voucher</td></tr> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">Les e-Vouchers sont des codes à usage unique utilisables sur <a href="https://www.izy.com" target="_blank" style="color: #333333; text-decoration: none;">izy.com</a>. Leur durée de validité est d’un an. Passée cette date, ils seront considérés comme expirés et leur montant sera définitivement perdu. Ils sont incessibles et ne peuvent être utilisés pour plusieurs transactions.</td></tr> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#97bf0d; padding-left:10px; padding-right:10px; padding-top:10px; padding-bottom:0px;"> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#e8e9ed;"> <tr> <td style="background-color:#e8e9ed;font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="209" align="center">code(s)</td> </tr> </table> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#e8e9ed;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="120" align="center">Montant</td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="160" align="center">Date d'expiration </td></tr> </table> </td></tr> <%var i=0; for each(var result in codes.Code) { i++; %> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#97bf0d; padding-left:10px; padding-right:10px; padding-top:0px; padding-bottom:10px;"> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="209" align="center"><%=result.Value%></td> </tr> </table> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="120" align="center"><%=result.Amount%> €</td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="160" align="center"><%=result.ExpirationDate%> </td></tr> </table> </td></tr><%}%> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">Pour utiliser vos e-vouchers et réserver vos prochains voyages, rien de plus simple : </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/BEBA9486BDDD6B8C5FEE393CAF963F18.png" alt="1" width="125" height="80" border="0"/></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/45D44675065A761A45FDEEF8FB8F0997.png" alt="2" width="125" height="80" border="0"/> </td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/48D65B06F89AB0304586440A08C41120.png" alt="3" width="125" height="80" border="0"/></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/FA10470FF8C4D9C964C854D70B3E2F6F.png" alt="4" width="125" height="80" border="0"/></td></tr> </table> </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:20px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"><strong>Indiquez</strong> votre date de voyage souhaitée et accédez aux places disponibles</td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"><strong>Personnalisez</strong> votre voyage en fonction de vos besoins grâce aux options supplémentaires</td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center" valign="top"><strong>Renseignez</strong> les informations du ou des voyageur(s)</td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"><strong>Payez</strong> avec vos e-Vouchers selon le montant de votre commande<sup>(1)</sup></td></tr> </table> </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:30px;"><a href="https://www.izy.com/fr" target="_blank"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/766845D981AC6DBAB753380B6815C7B2.png" alt="booking" width="260" height="30" border="0"/></a> </td></tr> <tr> <td style="background-color:#e8e9ed; font-family:Arial,sans-serif; font-size:12px; text-transform:uppercase; font-weight:bold; color:#5bac26; padding-left:40px; padding-right:20px; padding-top:8px; padding-bottom:8px;" align="right">faites la route en train !</td></tr> <tr> <td style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:12px; text-transform:uppercase; font-weight:bold; color:#000000; padding-left:5px; padding-right:20px; padding-top:15px; padding-bottom:8px;">izy.com</td></tr> <tr> <td align="center" style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:20px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f7fb;"> <tr> <td style="font-family:Arial,sans-serif; font-size:11px; color:#000000; padding-bottom:5px" width="145" align="left">B.P. 14/Postbus 14<br /> B-1050 <br /> Bruxelles 5 / Brussel 5<br /> BELGIQUE / BELGIË</td> <td style="font-family:Arial,sans-serif; font-size:11px; color:#000000; padding-bottom:5px" width="145" align="left">TVA/BTW (BE) 0455.370.557<br /> RPM Bruxelles / RPR Brussel<br /> Banque / Bank 210-0215200-09</td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f7fb;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"></td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="right"><img src="http://r61.campaigns.thalys.com/res/img/F049DE289CF7E99944941A67AA9B1000.png" alt="" width="120" height="58" border="0" style="display:block;" /></td></tr> </table> </td></tr> <tr> <td style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:10px; color:#000000; padding-left:5px; padding-right:20px; padding-top:15px; padding-bottom:8px;">(1) Si le montant des e-Vouchers saisis est inférieur au prix total de la commande, un paiement supplémentaire par carte de crédit sera nécessaire. Si le montant des e-Vouchers saisis est supérieur au prix total de la commande, la montant de la différence sera définitivement perdu.<br /> <br /> Ce message a été généré automatiquement. Votre message ne sera pas traité si vous répondez à cet e-mail en utilisant la fonction "Répondre" de votre messagerie. Pour toutes vos questions, consultez la rubrique <a href="https://www.izy.com/fr/faq" target="_blank" style="color: #333333; text-decoration: underline;">FAQ.</a></td></tr></table></td> <td width="20" class="hide"></td></tr></table> <!--VersionNL--> <%} else if(language == 'NL'){%> <!--Header--> <table style="background-color:#f6f7fb;" width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="inner"> <tr><td style="font-family:Arial,sans-serif; font-size:10px; color:#000000; padding-bottom:10px; padding-top:10px" align="center">Indien deze e-mail niet goed leesbaar is, <a href="<%@ include view='MirrorPageUrl' %>" target="_blank" style="color: #333333; text-decoration: underline;">klik dan hier</a>.</td></tr> <tr> <td style="padding-top:10px"> <table align="left" width="300" border="0" cellspacing="0" cellpadding="0" class="td_center"> <tr> <td width="168" style="color:#FFFFFF; padding-left:40px" ><a href="https://www.izy.com/nl" target="_blank"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/thalys-t/1cad1f0b47e07d28c2154c41c5b324d2.png" alt="IZY" width="132" height="123" border="0"/></a></td></tr></table> <table width="320" border="0" cellpadding="0" cellspacing="0" style="padding-right:20px" align="right" class="hide" valign="top"> <tr> <td style="font-family:Arial,sans-serif; font-size:14px; color:#000000; text-transform:uppercase; font-weight:bold; padding-top:40px" align="center">e-voucher</td></tr></table></td></tr> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-align:justify; padding-top:30px; padding-left:40px; padding-right:20px; padding-bottom:20px"> <span style="color:#5bac26; font-weight:bold">Uw dossiernummer: <%=destinataire.DossierNumber%></span><br /><br /> Hallo, <br /><%=body%> <br /><br /> <strong>Uw IZY-adviseur</strong></td></tr></table> <!--EVoucher Details --> <table class="inner" width="640" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#f6f7fb;"> <tr> <td width="20" class="hide"></td> <td> <table class="inner" border="0" align="left" cellpadding="0" cellspacing="0" bgColor="#e8e9ed" width="600"> <tr> <td style="background-color:#e8e9ed; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#5bac26; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">Activatie van je e-voucher</td></tr> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">De e-Vouchers zijn unieke codes die u kunt gebruiken op <a href="https://www.izy.com" target="_blank" style="color: #333333; text-decoration: none;">izy.com</a> via onderstaande link. <br /> Ze hebben een geldigheidsduur van één jaar. Na deze datum vervallen ze en is hun waarde definitief verloren. Deze zijn niet overdraagbaar en kunnen niet gebruikt worden voor verschillende transacties.</td></tr> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#97bf0d; padding-left:10px; padding-right:10px; padding-top:10px; padding-bottom:0px;"> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#e8e9ed;"> <tr> <td style="background-color:#e8e9ed;font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="209" align="center">e-Voucher(s)</td> </tr> </table> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#e8e9ed;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="120" align="center">Bedrag</td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="160" align="center">Vervaldatum </td></tr> </table> </td></tr> <%var i=0; for each(var result in codes.Code) { i++; %> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#97bf0d; padding-left:10px; padding-right:10px; padding-top:0px; padding-bottom:10px;"> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="209" align="center"><%=result.Value%></td> </tr> </table> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="120" align="center">€ <%=result.Amount%></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="160" align="center"><%=result.ExpirationDate%> </td></tr> </table> </td></tr><%}%> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">Uw volgende reis met IZY reserveren en betalen met uw e-Vouchers is heel eenvoudig: </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/9E3D16DE212DEDD0037ACF37BE0DAE51.png" alt="1" width="125" height="80" border="0"/></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/78DA7AC8643908C0060F46E1370277C5.png" alt="2" width="125" height="80" border="0"/> </td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/45659377A36A22C7C3D0198F02C3F787.png" alt="3" width="125" height="80" border="0"/></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/29070186CF593154150FC145F5AE575E.png" alt="4" width="125" height="80" border="0"/></td></tr> </table> </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:20px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"><strong>Duid</strong> je gewenste reisdatum aan en raadpleeg de beschikbare plaatsen</td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"><strong>Dankzij</strong> de extra opties, kan je je reis personaliseren in functie van je behoeften</td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center" valign="top"><strong>Vul</strong> de details in van de reiziger(s)</td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center" valign="top"><strong>Betaal</strong> het bedrag van uw bestelling met uw e-Vouchers<sup>(1)</sup></td></tr> </table> </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:30px;"><a href="https://www.izy.com/nl" target="_blank"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/E19D6065790C2C9BA3A174ED66818977.png" alt="booking" width="260" height="30" border="0"/></a> </td></tr> <tr> <td style="background-color:#e8e9ed; font-family:Arial,sans-serif; font-size:12px; text-transform:uppercase; font-weight:bold; color:#5bac26; padding-left:40px; padding-right:20px; padding-top:8px; padding-bottom:8px;" align="right">Snel weg met de trein!</td></tr> <tr> <td style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:12px; text-transform:uppercase; font-weight:bold; color:#000000; padding-left:5px; padding-right:20px; padding-top:15px; padding-bottom:8px;">izy.com</td></tr> <tr> <td align="center" style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:20px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f7fb;"> <tr> <td style="font-family:Arial,sans-serif; font-size:11px; color:#000000; padding-bottom:5px" width="145" align="left">B.P. 14/Postbus 14<br /> B-1050 <br /> Bruxelles 5 / Brussel 5<br /> BELGIQUE / BELGIË</td> <td style="font-family:Arial,sans-serif; font-size:11px; color:#000000; padding-bottom:5px" width="145" align="left">TVA/BTW (BE) 0455.370.557<br /> RPM Bruxelles / RPR Brussel<br /> Banque / Bank 210-0215200-09</td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f7fb;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"> </td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="right"><img src="http://r61.campaigns.thalys.com/res/img/F049DE289CF7E99944941A67AA9B1000.png" alt="" width="120" height="58" border="0" style="display:block;" /></td></tr> </table> </td></tr> <tr> <td style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:10px; color:#000000; padding-left:5px; padding-right:20px; padding-top:15px; padding-bottom:8px;">(1) Als het bedrag van de ingevoerde e-Vouchers lager is dan de totale prijs van de bestelling, zal een bijkomende betaling met een betaalkaart noodzakelijk zijn. Als het bedrag van de ingevoerde e-Vouchers hoger is dan de totale prijs van de bestelling, zal het bedrag van het verschil definitief verloren zijn. De e-Vouchers kunnen afzonderlijk gebruikt worden.<br /> <br /> Dit bericht is automatisch aangemaakt. Als u deze mail beantwoordt met behulp van de antwoordfunctie in uw mailbox, wordt het bericht niet in behandeling genomen. Raadpleeg de <a href="https://www.izy.com/nl/faq" target="_blank" style="color: #333333; text-decoration: underline;">FAQ-rubriek </a> voor al je verdere vragen.</td></tr></table></td> <td width="20" class="hide"></td></tr></table>
Views
Replies
Total Likes
Follow of code
<!--VersionEN--> <%} else{%> <!--Header--> <table style="background-color:#f6f7fb;" width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="inner"> <tr><td style="font-family:Arial,sans-serif; font-size:10px; color:#000000; padding-bottom:10px; padding-top:10px" align="center"><a href="<%@ include view='MirrorPageUrl' %>" target="_blank" style="color: #333333; text-decoration: underline;">Click here</a> to view this e-mail in your browser.</td></tr> <tr> <td style="padding-top:10px"> <table align="left" width="300" border="0" cellspacing="0" cellpadding="0" class="td_center"> <tr> <td width="168" style="color:#FFFFFF; padding-left:40px" ><a href="https://www.izy.com/en" target="_blank"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/thalys-t/1cad1f0b47e07d28c2154c41c5b324d2.png" alt="IZY" width="132" height="123" border="0"/></a></td></tr></table> <table width="320" border="0" cellpadding="0" cellspacing="0" style="padding-right:20px" align="right" class="hide" valign="top"> <tr> <td style="font-family:Arial,sans-serif; font-size:14px; color:#000000; text-transform:uppercase; font-weight:bold; padding-top:40px" align="center">e-voucher</td></tr></table></td></tr> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-align:justify; padding-top:30px; padding-left:40px; padding-right:20px; padding-bottom:20px"> <span style="color:#5bac26; font-weight:bold">Your case-number: <%=destinataire.DossierNumber%></span><br /><br /> Hello, <br /><%=body%> <br /><br /> <strong>Your IZY Customer Service Officer</strong></td></tr></table> <!--EVoucher Details --> <table class="inner" width="640" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color:#f6f7fb;"> <tr> <td width="20" class="hide"></td> <td> <table class="inner" border="0" align="left" cellpadding="0" cellspacing="0" bgColor="#e8e9ed" width="600"> <tr> <td style="background-color:#e8e9ed; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#5bac26; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">Activation of your e-voucher</td></tr> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;"> e-Vouchers are single-use codes for booking online on <a href="https://www.izy.com" target="_blank" style="color: #333333; text-decoration: none;">izy.com</a> via the link below. <br /> They are valid for one year after which they expire and their value is permanently lost. They are non-transferable and cannot be used for multiple transactions.</td></tr> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#97bf0d; padding-left:10px; padding-right:10px; padding-top:10px; padding-bottom:0px;"> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#e8e9ed;"> <tr> <td style="background-color:#e8e9ed;font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="209" align="center">e-Voucher(s)</td> </tr> </table> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#e8e9ed;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="120" align="center">Amount</td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="160" align="center">Expiry date </td></tr> </table> </td></tr> <%var i=0; for each(var result in codes.Code) { i++; %> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; text-transform:uppercase; font-weight:bold; color:#97bf0d; padding-left:10px; padding-right:10px; padding-top:0px; padding-bottom:10px;"> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="209" align="center"><%=result.Value%></td> </tr> </table> <table align="left" width="279" border="1" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="120" align="center">€ <%=result.Amount%></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; padding:5px" width="160" align="center"><%=result.ExpirationDate%> </td></tr> </table> </td></tr><%}%> <tr> <td align="left" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:10px;">There is nothing simpler than using your e-Voucher(s) to book your future travel on IZY: </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:5px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/F978168EF63809724A39E2866A0B094B.png" alt="1" width="125" height="80" border="0"/></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/30E217F59B0EBAC85937B3EB2F39D304.png" alt="2" width="125" height="80" border="0"/> </td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/CC399011007964C9CEB6CFC26F3F5972.png" alt="3" width="125" height="80" border="0"/></td> <td style="font-family:Arial,sans-serif; font-size:12px; color:#000000; text-transform:uppercase; font-weight:bold; " width="145" align="center"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/2E54A0624A1E54C8B8C836BE57261421.png" alt="4" width="125" height="80" border="0"/></td></tr> </table> </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:20px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"><strong>Indicate</strong> your preferred departure date and check the availability of seats</td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"><strong>Customise</strong> your journey depending on your needs thanks to the optional extras</td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#ffffff;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center" valign="top"><strong>Enter</strong> the passenger details</td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center" valign="top"><strong>Pay</strong> with e-Voucher(s) based on your order amount<sup>(1)</sup></td></tr> </table> </td></tr> <tr> <td align="center" style="background-color:#ffffff; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:20px; padding-right:20px; padding-top:10px; padding-bottom:30px;"><a href="https://www.izy.com/en" target="_blank"><img style="display:block;" src="http://r61.campaigns.thalys.com/res/img/4CF8567EE76D126CF1115EB002E5755B.png" alt="booking" width="260" height="30" border="0"/></a> </td></tr> <tr> <td style="background-color:#e8e9ed; font-family:Arial,sans-serif; font-size:12px; text-transform:uppercase; font-weight:bold; color:#5bac26; padding-left:40px; padding-right:20px; padding-top:8px; padding-bottom:8px;" align="right">Hit the road by train!</td></tr> <tr> <td style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:12px; text-transform:uppercase; font-weight:bold; color:#000000; padding-left:5px; padding-right:20px; padding-top:15px; padding-bottom:8px;">izy.com</td></tr> <tr> <td align="center" style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-left:5px; padding-right:5px; padding-top:5px; padding-bottom:20px;"><table align="left" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f7fb;"> <tr> <td style="font-family:Arial,sans-serif; font-size:11px; color:#000000; padding-bottom:5px" width="145" align="left">B.P. 14/Postbus 14<br /> B-1050 <br /> Bruxelles 5 / Brussel 5<br /> BELGIQUE / BELGIË</td> <td style="font-family:Arial,sans-serif; font-size:11px; color:#000000; padding-bottom:5px" width="145" align="left">TVA/BTW (BE) 0455.370.557<br /> RPM Bruxelles / RPR Brussel<br /> Banque / Bank 210-0215200-09</td></tr> </table> <table align="right" width="290" border="0" cellspacing="0" cellpadding="0" style="background-color:#f6f7fb;"> <tr> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="center"> </td> <td style="font-family:Arial,sans-serif; font-size:13px; color:#000000; padding-bottom:5px" width="145" align="right"> <img src="http://r61.campaigns.thalys.com/res/img/F049DE289CF7E99944941A67AA9B1000.png" alt="" width="120" height="58" border="0" style="display:block;" /></td></tr> </table> </td></tr> <tr> <td style="background-color:#f6f7fb; font-family:Arial,sans-serif; font-size:10px; color:#000000; padding-left:5px; padding-right:20px; padding-top:15px; padding-bottom:8px;">(1) If the amount of e-Vouchers entered is less than the total price of the order, an additional payment by bank card will be required. If the amount of e-Vouchers entered is greater than the total price of the order, the difference will be lost. e-Vouchers can be used separately.<br /> <br /> This message was generated automatically. If you use "Reply" to respond to this email, your message will not be processed. For further questions, please visit the <a href="https://www.izy.com/en/faq" target="_blank" style="color: #333333; text-decoration: underline;">FAQ</a> section.</td></tr></table></td> <td width="20" class="hide"></td></tr></table> <%}%> </body> </html>
Thank you for your time
Views
Replies
Total Likes
So looking at the code & the error again... mctx is undefined...
Which means there is no data being mapped to alert.ctx.. This seems backwards
in your code you have
var mctx = alert.ctx;
If you want to populate mctx with data you would need to pass something like this in your SOAP request. All variable data should be within your CTX (context variable)
Below would be the correct way.
<ctx> <alert>
someString </alert> </ctx>
Then map it this way.
var mctx = ctx.alert ;
Views
Likes
Replies