I am working on sending transactional emails to our recipients according to visitors activity in the last week, such that I'll want to deliver at the end the following email including 12 profiles maximum:
Hi, User, bla bla look these profiles:
Visitor's Name, Age, link to Visitor's image
Maria , 39 , http://images.fixapp.com/t-16985.jpg
*
* 12 profiles
*
Elena , 33, http://images.fixapp.com/t-16915.jpg
Click here to see all your visitors profiles
So far I advanced very well with the task doing the following:
- Added custom properties for all 12 profiles
- I've uploaded contact list details with all data via a CSV file
- I've written a raw html template and bounded the template's placeholders to the custom properties of list details For example:
<div class="new__faces__img"><img src='[[data:visitor1.photo]]'></div>
<div class="new__faces__name">
<span>[[data:visitor1.name]]</span>, [[data:visitor1.age]]
</div>
> other visitors ...
<div class="new__faces__img"><img src='[[data:visitor12.photo]]'></div>
<div class="new__faces__name">
<span>[[data:visitor12.name]]</span>, [[data:visitor12.age]]
</div>
What I still don't know is how to handle the case when a user has less than 12 visitors. Mandrill email service in such cases offers conditional merge tags. What is the way of MailJet to resolve the issue?