Email Template
    • 4 Minutes to read
    • Dark
      Light

    Email Template

    • Dark
      Light

    Article summary

    Here is a basic example of an email template that you can use for transactions (orders).

    <html>
       
    <body>
      <p>Dear
        <%user.firstname%>
          <%user.lastname%>
      </p>
      <p> Thank you for shopping , please see your order 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" >
              <tr>
                <td align="top" >
                  <table width="100%" cellpadding="0" cellspacing="0" border="0" >
                    <tr>
                      <td align="center" class="someCSSSstyle">
                        <a href="<%${product['productURL']}%>" >
                  <img src="<%${product['imageURL']}%>" width="280" border="0"  /></a>
                      </td>
                    </tr>
                    <tr>
                      <td >
                        <table width="100%" cellpadding="0" cellspacing="0" border="0" >
                          <tr>
                            <td align="center" >
                              <a href="url" target="_blank" >
                               
                              <%${product['brand']}%>
                               
                               </a>
                            </td>
                          </tr>
                          <tr>
                            <td align="center" >
                              <a href="url" target="_blank" >
                               
                              <%${product['productName']}%>
                               
                               </a>
                            </td>
                          </tr>
                          <tr>
                            <td align="center" >
                              <a href="url" target="_blank" >
                               
                              Quantity: <%${product['productQuantity']}%>, Price per item: <%${product['productPrice']}%> <%${product['currency']}%>
                               
                               </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>


    Was this article helpful?


    What's Next