Skip to content

Sample templates

Here are some sample templates for the confirmation email body.

Example - entire table

<div style='width: 100%;background-color: #eee; margin: 10px 0px;'>
    <div style='width: 80%;margin: auto; box-shadow: 1px 1px 4px grey;padding: 10px 30px;background: white;'><img src='https://i.imgur.com/a9jf89X.png' width='100%'>
        <h1>Monthly Activity information</h1><br>Hari Om!<br><br>Thank you for Submitting Monthly Activity information{<br><br>Check that the details submitted (provided in this email for your convenience) are correct and notify us for any corrections required.<br><br>
        <table>{% for key, val in response.items() %} <tr>
                <th>{{key}}</th>
                <td>{{val}}</td>
            </tr> {% endfor %} </table><br><br>In His Service,<br>Webmaster
    </div>
</div>

Example - only a few things

<div style='width: 100%;background-color: #eee; margin: 10px 0px;'>
    <div style='width: 80%;margin: auto; box-shadow: 1px 1px 4px grey;padding: 10px 30px;background: white;'><img src='https://i.imgur.com/a9jf89X.png' width='100%'>
        <h1>Monthly Activity information form for {{value.month}}/{{value.year}}</h1><br>Hari Om!<br><br>Thank you for Submitting Monthly Activity information<br><br><strong>Centre Name: </strong>{{value.centre}}<br><br>{% if value.feedback %}<strong>Feedback: </strong>{{value.feedback}}{% else %}You will receive another email with feedback from Swamiji.{% endif %}<br><br>In His Service,<br>Webmaster
    </div>
</div>

Example - payment detail table

{% set payment_history_table %}{% block payment_history_table %}{% if payment_status_detail|length == 0 %}{% else %}<table> <h2> Payment History </h2> <tr> <th>Date</th> <th>Amount</th> </tr>{% for item in payment_status_detail %} <tr> <td>{% set dateparts = item.date['$date'].split('T') %}{{ dateparts[0] | format_date }}</td> <td>{{item.amount | format_payment(item.currency)}}</td> </tr>{% endfor %} </table>{% endif %}{% endblock %}{% endset %} <div style='width: 100%;background-color: #eee; margin: 10px 0px;'> <div style='width: 80%;margin: auto; box-shadow: 1px 1px 4px grey;padding: 10px 30px;background: white;'> <div style='text-align: center'> <img src='https://www.chinmayamissionalpharetta.org/wp-content/themes/cma/img/headerImg.png' style='width: 100%; margin: auto; max-width: 500px'> <div style='width: 100%; '> <h1 style='margin: auto;'>Chinmaya Mission Alpharetta</h1> <br> </div> </div> <p> <br> Thank you for your generous contribution to Chinmaya Mission Alpharetta, a 501(c)(3) not for profit corporation. We verify that Chinmaya Mission Alpharetta did not provide you with any goods or services in exchange for this contribution. Your donation will be used for the construction of Chinmaya Gurukul and for the educational and family enrichment activities. <br> <br> This email is your official receipt for your donation for tax purposes. Please print or save this message for your personal records. All donations are tax-deductible in the USA to the extent permissible by law. <br> <h1> Donation Receipt </h1> </p> <table> <tr> <th>First Name</th> <td>{{ value.contact_name.first }}</td> </tr> <tr> <th>Last Name</th> <td>{{ value.contact_name.first }}</td> </tr> <tr> <th>Admin comments</th> <td>{{ value.adminComments }}</td> </tr> <tr> <th>Contact person</th> <td>{{ value.contactperson }}</td> </tr> <tr> <th>Email</th> <td>{{ value.email }}</td> </tr> <tr> <th>Installment text: Comments</th> <td>{{ value.installmentText.comments }}</td> </tr> <tr> <th>Name on Dharma Tree</th> <td>{{ value.nameOnDharmaTree }}</td> </tr> <tr> <th>Payment method</th> <td>{{ value.paymentMethod }}</td> </tr> <tr> <th>Phone</th> <td>{{ value.phone }}</td> </tr> <tr> <th>Pledge Amount</th> <td>{{paymentInfo.total | format_payment(paymentInfo.currency)}}</td> </tr> <tr> <th>Total Amount Paid</th> <td>{{ amount_paid | format_payment(paymentInfo.currency) }}</td> </tr> </table> <h2>Payment Info</h2> <table> <tr> <th>Item Name</th> <th>Description</th> <th>Amount</th> </tr>{% for item in paymentInfo['items'] %} <tr> <td>{{item.name}}</td> <td>{{item.description}}</td> <td>{{item.amount | format_payment(paymentInfo.currency)}}</td> </tr>{% endfor %} </table> {{ payment_history_table }} <br> Sincerely, <br> CMA Team </div> </div>

Example - multiple templates, for MSC

{% set payment_history_table %}{% block payment_history_table %}{% if payment_status_detail|length == 0 %}{% else %}<table> <tr> <th>Date</th> <th>Amount</th></tr>{% for item in payment_status_detail %} <tr><td>{% set dateparts = item.date['$date'].split('T') %}{{ dateparts[0] | format_date }}</td><td>{{item.amount | format_payment(item.currency)}}</td></tr>{% endfor %} </table>{% endif %}{% endblock %}{% endset %} {% set payment_table %}{% block payment_table %}<table> <tr> <th>Item</th> <th>Description</th> <th>Amount</th> <th>Quantity</th> <th>Totals</th> </tr> {% for item in paymentInfo['items'] %} <tr> <td>{{item.name}}</td> <td>{{item.description}}</td> <td>{{item.amount | format_payment(paymentInfo.currency)}}</td> <td>{{item.quantity}}</td> <td>{{item.total | format_payment(paymentInfo.currency)}}</td> </tr> {% endfor %} <tr> <td colspan='4'>Total</td> <td>{{paymentInfo.total | format_payment(paymentInfo.currency)}}</td> </tr> {% set amount_paid = amount_paid | float %} {% if amount_paid > 0 %} <tr> <td colspan='4'>Amount Paid</td> <td>{{amount_paid | format_payment(paymentInfo.currency)}}</td> </tr> {% if paymentInfo.total - amount_paid > 0 %} <tr> <td colspan='4'>Remaining Amount Due</td> <td>{{(paymentInfo.total - amount_paid) | format_payment(paymentInfo.currency)}}</td> </tr> {% endif %} {% endif %} </table>{% endblock %}{% endset %}{% set info_table %}{% block info_table %}<table align: center> <tr> <th> Primary Contact: </th> <td> {{value.contactName.first}} {{value.contactName.last}} </td> </tr> <tr> <th> Family ID: </th> <td> {{counter}} </td> </tr> <tr> <th> Number of Attendees: </th> <td> {{value.participants | length }} </td> </tr> <tr> <th> Payment Method: </th> <td> {% if value.paymentMethod == 'paypal' %} PayPal {% elif value.paymentMethod == 'check' %} Check {% endif %} {% if value.installments == 'installments' %} , with installments {% endif %} </td> </tr> </table>{% endblock %}{% endset %}{% set amount_paid = amount_paid | float %} {% set full_refund = namespace(status=False) %} {% for item in payment_status_detail %} {% set item_amount = item.amount | float %}{% if item_amount < 0 and amount_paid == 0 %} {% set full_refund.status = True %} {% endif %} {% endfor %}<style> .cff-msc-header-container { font-family: 'Open Sans'; font-size: 16px; text-transform: none; line-height: normal; } .cff-msc-header { color: #ec6b33; font-weight: bold; text-transform: capitalize; font-size: 24px; font-family: Verdana; text-align: center; } </style> <a target=_blank href='https://chinmayaaradhana2021.org'><img class='img-fluid' style='float:left;max-width:200px' src='https://chinmayaaradhana2021.org/wp-content/uploads/2020/05/MSC2021_logo_lightBG_ForWebsite_Header_Small.png' /></a><div class='cff-msc-header-container'> <div class='cff-msc-header'>28th Chinmaya Mahasamadhi Aradhana Camp<br> “THE PERFECT VISION” </div> <div style='float: center; text-align: center'> Thursday July 29th – Monday Aug 3rd, 2021<br> Hyatt Regency, 1333 Bayshore Highway, Burlingame, California, United States, 94010 </div> <br style='clear: both' /> </div> <br><br> <style> table { font-family: arial, sans-serif; border-collapse: collapse; width: 70%; } td, th { border: 1px solid #0d0d0d; text-align: left; padding: 8px; } th { background-color: beige; } </style> {% if full_refund.status %} We have received and processed your refund.<br><br> {{ info_table }} <br><br> {{ payment_table }} <br><br> {{payment_history_table }} <br><br> Thanks,<br>MSC 2021 Team {% else %} {{ info_table }} <br><br> <table> <tr> <th> Attendees </th> <th> Gender </th> </tr> {% for participant in value.participants %} <tr> <td> {{participant.name.first}} {{participant.name.last}} </td> <td> {{participant.gender}} </td> </tr> {% endfor %} </table> <br><br> {{ payment_table }} <br> {% if value.installments == 'installments' %} <table> <tr> <th colspan='2'> <center>Installment Payments</center> </th> </tr> <tr> <th> Date Due </th> <th> Amount Due</th> </tr> <tr> <td><strong>{{value.installment1 | format_date}}</strong></td> <td>{{(paymentInfo.total / 3) | format_payment(paymentInfo.currency)}}</td> </tr> <tr> <td><strong>{{value.installment2 | format_date}}</strong></td> <td>{{(paymentInfo.total / 3) | format_payment(paymentInfo.currency)}}</td> </tr> <tr> <td><strong>{{value.installment3 | format_date}}</strong></td> <td>{{(paymentInfo.total / 3) | format_payment(paymentInfo.currency)}}</td> </tr> </table> {% endif %} {% if value.paymentMethod == 'check' %} <br> <br> {{ payment_history_table }} <br><br> <center>Make checks payable to:</center> <h2> <center>Chinmaya Mission San Jose</center> </h2> <center><strong>Please write the Family ID on the checks.</strong></center> <center>Mail checks to:</center> <center>ATTENTION: MSC-2021</center> <center>Chinmaya Mission San Jose</center> <center>10160 Clayton Road </center> <center>San Jose, CA 95127</center> <center>USA</center> <br>Registration may be cancelled if payment is not received in 15 days.<br><br>{% endif %} Thank you for Registering for the 2021 Chinmaya Mahasamadhi Aradhana Camp. {% endif %}