'Integracion de HTML sin templateId
Good evening, I want to send my own html, not created in sendgrid by email, but I can't find a way to integrate it
that is my code and this is the html template that I want to send
Solution 1:[1]
You will need to read the contents of your email.html
file first, then set those contents as the value of the Content
object.
It looks like you are writing this in Java. I'd recommend you check out this article on reading text from a file in Java and pick your favourite method to load the contents into memory and then use them in the Content
object.
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 | philnash |