checkedresponsive[@]gmail.com

Menu

Tag: nodejs

How to send email thru SendGrid in NodeJS ?

Send Email thru Sendgrid in NodejS Install NodeJS npm update Install Sendgrid Package npm install –save @sendgrid/mail const sgMail = require(‘@sendgrid/mail’); sgMail.setApiKey(‘<<SENDGRID API KEY>>’); const msg = { to: <<TO@EMAIL.COM>>, from: ‘<<FROM@EMAIL.COM>>’, subject: <<SUBJECT>>, text: html, html: <<HTML Content>>, }; sgMail.send(msg);