SendGrid API - using template
How do I use a template mail item with the Appery API for Sendgrid? I want to use a template which will have company logo on and just add the message body and subject.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
How do I use a template mail item with the Appery API for Sendgrid? I want to use a template which will have company logo on and just add the message body and subject.
Hi Aeneas,
Unfortunatly this is not specified with Appery.io platform.
You can use all JS templating processing which is you need.
Regards.
Hi Yurri,
How do I use JS templating to do this? I am quite new to js. I basically just want to add a banner/picture at the tope of the email and send it in html.
Thanks,
Aeneas
Aeneas,
I guess you can add this information to your body without templating.
Just concatenate strings with JS.
For example:
var body = "<h1Dear user,</h1";
body += '<http://hereisyour.image.url" rel="nofollow"http://hereisyour.image.url/a"';
body += "<phere you can add some infor</p";
Then you can use this "body" variable in sendgrid.
Regards.
That's great thanks. How do I use this part
to refer to an image in the app media library? Can this be done?
Thanks,
Aeneas
You need to specify path to the image source.
For example "http://appery.io/app/view/95800416-80..."
You will need to make your app public to change appId.