I implemented sending emails via nodemailer.
Now when I create new user, that new user get "welcome email".
Problem is cus that "welcome email" should contain option for resetting password.
How to add Firebase Resetting link in nodemailer email template?
This is my Email Template code for nodemailer
const output = ` <p>You have access to the Church Mutual Assignment Tool.</p> <p>Follow this link to create new password for your account ${userRecord.email}:</p> <a href="${resetPasswordLink}"> ${resetPasswordLink} </a> <p>Thanks,</p> <p>Your Church Mutual Assignment Tool team</p> ` let message = { from: 'nyik6nntutmq3vz6@ethereal.email', to: `${user.email}`, subject: 'Welcome to the Church Mutual Assignment Tool', text: 'Plaintext version of the message', html: output }
This is my Nodemailer code:
var mailer = require('nodemailer') var mailConfig = { host: 'smtp.ethereal.email', port: 587, auth: { user: 'nyik6nntutmq3vz6@ethereal.email', pass: '3cbRjkZdPquDqA725s' } } var transporter = mailer.createTransport(mailConfig) module.exports = transporter