I using Nest.js and I'm not sure if it's causing this issue.
I have the following function:
`
public async send(mailerDto: MailerDto) {
const transporter = nodemailer.createTransport({
host: this.configService.get('EMAIL_HOST'),
port: 465,
secure: true,
auth: {
user: this.configService.get('EMAIL_USER'),
pass: this.configService.get('EMAIL_PASSWORD'),
},
tls: {
rejectUnauthorized: false,
minVersion: 'TLSv1.2',
},
});
I'm getting
ERROR [ExceptionsHandler] ENOENT: no such file or directory, open 'C:\work\passport\security-passport\apps\passport-mailer\main.handlebars'
After I added main.handlebars it works fine but I'm not able to use the templates I defined in other places. It's always using this main.handlebars.
I using Nest.js and I'm not sure if it's causing this issue. I have the following function: ` public async send(mailerDto: MailerDto) { const transporter = nodemailer.createTransport({ host: this.configService.get('EMAIL_HOST'), port: 465, secure: true, auth: { user: this.configService.get('EMAIL_USER'), pass: this.configService.get('EMAIL_PASSWORD'), }, tls: { rejectUnauthorized: false, minVersion: 'TLSv1.2', }, });
}`
I'm getting
ERROR [ExceptionsHandler] ENOENT: no such file or directory, open 'C:\work\passport\security-passport\apps\passport-mailer\main.handlebars'
After I added main.handlebars it works fine but I'm not able to use the templates I defined in other places. It's always using this main.handlebars.
What's with this main.handlebars?