I am trying to send email automaticaly from a SpreadSheet using SheetConverter library.
I have a problem because the function convertRange2html does not maintain borders nor automatic line return (see screenshots)
Here is the formatted Range in SpreadSheet
And here is what I get from email
To illustrate, here is a sample of my code :
var emailOrga = ss.getRange("CG5").getValue();
var emailSubject = ss.getRange("B7").getValue();
var mailRange = ss.getRange("B10:H50");
var htmlBody = SheetConverter.convertRange2html(mailRange);
var mailBody = "Transfère le à tous les participants <br/><br/>" + htmlBody + "<br/><br/>"
MailApp.sendEmail(emailOrga, emailSubject, mailBody, {htmlBody : mailBody});
I would like to know if my format problems come from the code I've written badly, or if anyone has a tool to improve the convertRange2html function?