veliovgroup / mail-time

📮 Email queue extending NodeMailer with multi SMTP transports and horizontally scaled applications support

Home Page:https://www.npmjs.com/package/mail-time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Choose default transporter when sending en email

sabativi opened this issue · comments

Hello,

Thanks for this package, I have a special use case where I have a customer that wants his emails to be sent through his SMTP server only.

I have a multi tenancy app, so I am wondering if I can make choose the default transporter when using sendEmail function ?

Thanks

Hello @sabativi 👋

The solution would be to create multiple new MailTime instances. Changing properties of existing instance is possible, but not recommended

Thanks I was thinking about that, can I have two MailTime that uses the same Queue ?