Transactional email template with parameters
Example of a prepared order email template
<html>
<body>
<p>Dear
<%user.firstname%>
<%user.lastname%>
</p>
<p> Thank you for shopping , please see your order no. <%${product['orderId']}%> details below: </p>
<br>
<table class="order-details">
<tr>
<td class="address-details">
<h3>Billing Info</h3>
<p>
<%parameter.billingAddress%>
</p>
</td>
<td class="address-details">
<h3>Shipping Info</h3>
<p>
<%parameter.shippingAddress%>
</p>
</td>
</tr>
<tr>
<td class="method-info">
<h3>Payment Method</h3>
<p>
<%parameter.paymentInfo%>
</p>
</td>
<td class="method-info">
<h3>Shipping Method</h3>
<p>
<%parameter.shippingMethod%>
</p>
<%InsertIf expression="${not empty parameter['shippingMessage']}" id="1"%>
<h3>Shipping message:</h3>
<p>
<%parameter.shippingMessage%>
</p>
<%/InsertIf%>
</td>
</tr>
</table>
<%ForEach var="product" items="${transaction_details}"%>
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
<tr>
<td align="top" style="padding-top:20px;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
<tr>
<td align="center" class="someCSSSstyle">
<a href="<%${product['productURL']}%>" style="text-decoration:none;">
<img src="<%${product['imageURL']}%>" width="280" border="0" style="display:block; width:100%; max-width:280px;" /></a>
</td>
</tr>
<tr>
<td style="padding-top:20px;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
<tr>
<td align="center" style="font-family: Arial, Helvetica, sans-serif; font-size:14px; line-height:18px; color:#aead9e; text-align:center;">
<a href="url" target="_blank" style="text-decoration:none; color:#aead9e;">
<span style="font-family: 'Open Sans', Arial, Helvetica, sans-serif !important; font-weight:400;">
<%${product['brand']}%>
</span>
</a>
</td>
</tr>
<tr>
<td align="center" style="font-family: Arial, Helvetica, sans-serif; font-size:16px; line-height:20px; color:#57574f; text-align:center; padding-top:5px;">
<a href="url" target="_blank" style="text-decoration:none; color:#57574f;">
<span style="font-family: 'Open Sans', Arial, Helvetica, sans-serif !important; font-weight:400;">
<%${product['productName']}%>
</span>
</a>
</td>
</tr>
<tr>
<td align="center" style="font-family: Arial, Helvetica, sans-serif; font-size:16px; line-height:20px; color:#57574f; text-align:center; padding-top:5px;">
<a href="url" target="_blank" style="text-decoration:none; color:#57574f;">
<span style="font-family: 'Open Sans', Arial, Helvetica, sans-serif !important; font-weight:400;">
Quantity: <%${product['productQuantity']}%>, Price per item: <%${product['productPrice']}%> <%${product['currency']}%>
</span>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%/ForEach%>
<table class="order-details">
<tr>
<td class="address-details">
<h3>Shiping Price:</h3>
<p>
<%parameter.shippingTotal%>
</p>
</td>
<td class="address-details">
<h3>Order items total:</h3>
<p>
<%parameter.orderItemsTotal%>
</p>
</td>
</tr>
</table>
<br>
<h2> TOTAL:
<%parameter.orderTotal%>
<%${product['currency']}%>
</h2>
<br>
<p>Greetings!</p>
</body>
</html>
XML