Created
May 24, 2020 21:01
-
-
Save zubairov/d401d803943192e99025e02aa4145937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sgMail = require('@sendgrid/mail'); | |
sgMail.setApiKey("foo"); | |
const msg = { | |
to: '[email protected]', | |
from: '[email protected]', | |
templateId: ' d-f8ab926d6193460589895936d95461eb', | |
dynamic_template_data: { | |
subject: 'Testing Templates', | |
name: 'Some One', | |
city: 'Denver', | |
}, | |
}; | |
await sgMail.send(msg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment