DEV Community

Discussion on: Templated Emails With Google Apps Script To Make Your Brand Team Happy

Collapse
 
mkw999 profile image
Martin

Hi IMTheNachoMan
great script, I try to use it but have trouble with HTML-formatting the inserted content. The mail shows all the HTML tags. Could You give a short example on how to insert HTML? Thank You!

Martin

Collapse
 
mkw999 profile image
Martin

This is my code:

first, I have the data definition in the custom mail:

Your trip: <?= data.intCalDescription ?> is really beautiful!

The value of intCalDescription :
this.intCalDescription = ('

' + this.bookID + '

' + this.Condo + '

' +
'
' +
'' );

And finally, in the joined mail, my intCalDescription is displayed with all HTML tags.

I am sure there is a quick fix to that, I hope You can help.
Martin

Anfrage: ' + this.stampDateString + '
Collapse
 
mkw999 profile image
Martin