'Sendgrid API - Creating HTML Email Template via API
I am not able to figure out how I can create an HTML email template in Sendgrid using the v3 API.
I need to add HTML templates on Sendgrid on the fly on the basis of user input (the user uploads an HTML file the platform which makes an API request to Sendgrid)
I need to be able to send the entire HTML (along with Headers and Styles) to Sendgrid for processing these email.
I am able to send basic HTML tags like paragraphs and headings but not the entire HTML.
Can someone guide me to the right direction?
Solution 1:[1]
You need to create a template first & then need to add its version. Take a reference of create template and then create its version
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Vasu |