Closed TranceGeniK closed 4 years ago
Which version of the mail package are you using?
3.0.10
Any idea ?
Hey. Sorry for the late reply. I don't see any direct way to create runtime drivers instances with different config. One way is to register the config at runtime. For example: If you have multiple tenants, then you can use the tenantId
to register the config like this.
Config.set('mail.tenant1', {
// config goes here
})
And then use it as
Mail.driver('tenant1').send()
Thanks, will try !
Is there a way to set the smtp server (and user/password) at runtime ?