fix(mail.service): use sendgrid api instead of nodemailer for better deliverability

This commit is contained in:
Amruth Pillai
2022-03-08 07:46:06 +01:00
parent e96b090904
commit 9df12194bf
11 changed files with 105 additions and 340 deletions

View File

@ -1,9 +0,0 @@
import { registerAs } from '@nestjs/config';
export default registerAs('mail', () => ({
host: process.env.MAIL_HOST,
port: parseInt(process.env.MAIL_PORT, 10) || 465,
username: process.env.MAIL_USERNAME,
password: process.env.MAIL_PASSWORD,
from: process.env.MAIL_FROM,
}));