Closed JayStevency closed 9 months ago
Issue-Label Bot is automatically applying the label question
to this issue, with a confidence of 0.77. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
were u able to resolve this?
@JayStevency Whilst I was almost giving up on the library. I realized the documentation is misguiding.
Please use this instead.
createMailerOptions() : MailerOptions {
return {
transport: {
host: 'smtp.office365.com',
port: 587,
secure: false,
auth: {
user: this.configService.get('mailAccount'),
pass: this.configService.get('mailAccountPassword'),
},
},
defaults: {
from: 'dev@energyx.co.kr',
},
template: {
dir: process.cwd() + '/src/template/',
adapter: new HandlebarsAdapter(),
options: {
strict: true,
},
},
};
}
Thanks @uncle-tee .
I tried that you were mentioned MailerOptions
, but I couldn't get any changes...
So I just read on file .hbs
not use adapter .
I hope it works well later.
I set up
mail
module and use MailerService on mail service./src/config/mailer.config.ts
src/mail/mail.module.ts
src/mail/mail.service.ts
src/template |- password.hbs
I checked MailerOptions on mailService on
mail.service.ts
It was fine and mail sent as well.
But i couldn't get any mail contents by password.hbs
How can i do something more?
Thanks for reading my trouble. plz help me.