Last active
March 27, 2024 20:13
-
-
Save antonkalik/cd9bdbb7a0abf21af7c975873b7686b6 to your computer and use it in GitHub Desktop.
Email Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import process from 'process'; | |
import * as nodemailer from 'nodemailer'; | |
import * as dotenv from 'dotenv'; | |
dotenv.config(); | |
export class EmailService { | |
private static transporter: nodemailer.Transporter; | |
private static env = { | |
USER: process.env.MAIL_USER, | |
PASS: process.env.MAIL_PASSWORD, | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment