Skip to content

Instantly share code, notes, and snippets.

@antonkalik
Last active March 27, 2024 20:13
Show Gist options
  • Save antonkalik/cd9bdbb7a0abf21af7c975873b7686b6 to your computer and use it in GitHub Desktop.
Save antonkalik/cd9bdbb7a0abf21af7c975873b7686b6 to your computer and use it in GitHub Desktop.
Email Service
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