You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, congratulations for this excelent boilerplate!
I want to know how to use another emailClient in dependencyInjector.ts
For instance, if I'm using Sendgrid I can replace the instance and change the DI, but also need to change the methods in MailerService. So how to make an agnostic MailerService?
Hi, congratulations for this excelent boilerplate!
I want to know how to use another emailClient in dependencyInjector.ts
For instance, if I'm using Sendgrid I can replace the instance and change the DI, but also need to change the methods in MailerService. So how to make an agnostic MailerService?
bulletproof-nodejs/src/loaders/dependencyInjector.ts
Line 15 in b3d82c1
Replace it with:
const sgInstance = sgMail;
And in the MailerService, need to change the client send method.
bulletproof-nodejs/src/services/mailer.ts
Line 23 in b3d82c1
Replace it with (sendgrid api)
this.emailClient.send(msg)
Is this right? Can you think of any other way or idea?
Thanks a lot.
The text was updated successfully, but these errors were encountered: