I want to send email with nodemailer using html template. In that template I need to inject some dynamically some variables and I really can\'t do that. My code:
This can be done without templates.
Try changing it to this:
`Hello ${username}!`
Make sure that these are not inverted commas but back ticks.