Hi! I have a styling issue with my emails. When i used the emailDialog it worked fine but lets face it, The Cloud email templates are SO much better to use.
So i have a table with some rows that i would like to mail.
Here is my code:
var messageData; for ( i = 0; i < data.length; i++) { messageData +=data[i].children[0].text + ' ' + data[i].children[1].text + ' '+ data[i].children[2].text+'\n\n'; }; btnSubmit.addEventListener('click', function(e) { Cloud.Emails.send({ template : 'time', recipients : 'ghbjn@xctvyi.com', time: messageData, }, function(e) { // success, error and so on.... });And in my "Time" template i have {{tim}}.
So far so good.
But here is the catch.
When i receive the mail it looks like (here´s the values that loops in my row: data[i].children[0].text 1,2 )
0 1 2 0 1 2 etc...
I would like it to be:
0 1 2
0 1 2
When i used the emailDialog and mailed it the
'\n\n'
at the end of the messageData loop took care of that and it was pretty.
But now it wont work.
So any ideas on how i can change row with the Cloud email Template?
Thanx!
//R