I'm reading through the send grid documentation about templates here and could find this:
You can send transactional templates using one of three ways:
- Using the SMTP Relay
- Including the template ID in the templates parameter of the Web API v3 Mail Send endpoint
- Using the x-smtp api parameter in the Web API v2 Mail Send endpoint
In node.js I have access to their JS SDK. However, In API the documentation it is explained only how to use the first method (SMTP relay). In the documentation of the JS SDK there is no option for sending emails using a template.
Where can I find a complete example of how to use the JS SDK of send grid to send an email using a template?
thanks.