DEV Community

Discussion on: Send Email with SendGrid and Mailgen in Node.js

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 :)