From eef3888217757182dc20154b4546a9ca0afd0730 Mon Sep 17 00:00:00 2001 From: Kyle Roberts Date: Fri, 12 Oct 2018 15:20:02 -0600 Subject: [PATCH] Update transactional-templates.md There is no need for <%body%> in the email template as it does not work in dynamic templates. Also, the email send does not need a subject, text, or HTML section as those are all set in the template. --- use-cases/transactional-templates.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/use-cases/transactional-templates.md b/use-cases/transactional-templates.md index 0e8c40077..35fef67ec 100644 --- a/use-cases/transactional-templates.md +++ b/use-cases/transactional-templates.md @@ -20,8 +20,6 @@ Hello {{ name }},

I'm glad you are trying out the template feature!

-<%body%> -

I hope you are having a great day in {{ city }} :)

@@ -34,9 +32,6 @@ sgMail.setApiKey(process.env.SENDGRID_API_KEY); const msg = { to: 'recipient@example.org', from: 'sender@example.org', - subject: 'Hello world', - text: 'Hello plain world!', - html: '

Hello HTML world!

', templateId: 'd-f43daeeaef504760851f727007e0b5d0', dynamic_template_data: { subject: 'Testing Templates',