DEV Community

Cover image for Send Email with SendGrid and Mailgen in Node.js

Send Email with SendGrid and Mailgen in Node.js

Chinedu Orie on September 11, 2019

Often time we do have needs of sending email in our Node.js application. The first option that comes to mind is Nodemailer. Nodemailer is a good op...
Collapse
 
nonsodaniel profile image
nonsodaniel

Thanks for this wonderful article

Collapse
 
jakub41 profile image
Jakub

Hello,
I really like this article and I implemented similar functionality to my email send with SendGrid.
I have a question and I hope to get help with that :)
I would like to understand how in this functionality you showed here I can pass the email param like:
/sendMail:email
I would like to pass the email of the receiver and used to populate 2 keys:

  • to: email -> in the msg
  • name: email -> in the email

I cannot understand how to pass that param and hope you could help with adynamic example :)

Thank you :)