If you haven’t been living under a rock, you probably know that SendGrid released Transactional Templates recently. I’ve been using them for a while, specifically for my API demos. It makes it super simple for me to customize emails for a specific school or crowd on the fly without touching any code. With Transactional Templates I don’t ever touch my code.
Here is how my code looks like:
Now if I want to go to HackRU and give a demo, I don’t have to change anything in my code. I can go to the Templates interface and activate the template that I set up for HackRU.
When I send my email, it will look like this:
Now, next weekend I’ll probably head on over to hackNY, I just need to activate that template and I’m done.
If you notice, the only thing that matters is the ID of the template
Convenient right? Anyone can start using the Template Engine! If you have any issues or questions, feel free to poke me @elbuo8.