You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if it's possible to pass handle bar templates directly to trigger email. I see you're able to reference templates in firestore with this syntax:
But I was wondering if it would be possible to do it like this:
admin.firestore().collection('mail').add({to: '[email protected]',message: {subject: 'Hello from Firebase!',html: 'This is an <code>{username}</code> email body.',data: {username: 'name',}},})
The alternative would be just to install handlebars and create html strings manually to pass in, but if it's already possible or easily exposable through the trigger email API that'd be awesome!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was wondering if it's possible to pass handle bar templates directly to trigger email. I see you're able to reference templates in firestore with this syntax:
But I was wondering if it would be possible to do it like this:
The alternative would be just to install handlebars and create html strings manually to pass in, but if it's already possible or easily exposable through the trigger email API that'd be awesome!
Beta Was this translation helpful? Give feedback.
All reactions