#multiple mail driver

2 messages · Page 1 of 1 (latest)

devout verge
#

In the nest js , can we set multiple mail driver? My goals is have 2 drivers, when first driver is for production and the second one for fake smtp (for debugging purposes).

patent wing
#

Check out the configuration docs, you should be able to handle this with a simple .env file. I've not tried it in Nest before but it's a general concept applied across multiple frameworks/languages.

https://docs.nestjs.com/techniques/configuration