test: email sending e2e (#4130)

This commit is contained in:
Alex Yang
2023-09-02 13:13:59 -05:00
committed by GitHub
parent 3d8a91aab0
commit a2623e1352
9 changed files with 159 additions and 0 deletions
@@ -15,6 +15,17 @@ export const MAILER: FactoryProvider<
> = {
provide: MAILER_SERVICE,
useFactory: (config: Config) => {
if (config.auth.localEmail) {
return createTransport({
host: '0.0.0.0',
port: 1025,
secure: false,
auth: {
user: config.auth.email.login,
pass: config.auth.email.password,
},
});
}
return createTransport({
service: 'gmail',
auth: {