This repository was archived by the owner on Apr 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ exports.MailService = void 0;
77const ejs_1 = __importDefault ( require ( "ejs" ) ) ;
88const nodemailer_1 = __importDefault ( require ( "nodemailer" ) ) ;
99const path_1 = __importDefault ( require ( "path" ) ) ;
10+ const dotenv_1 = require ( "dotenv" ) ;
11+ ( 0 , dotenv_1 . config ) ( ) ;
1012class MailService {
1113 constructor ( ) {
1214 this . transporter = nodemailer_1 . default . createTransport ( {
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ import ejs from 'ejs';
22import nodemailer from 'nodemailer' ;
33import path from 'path' ;
44
5+ import { config } from 'dotenv' ;
6+ config ( ) ;
7+
58export interface IMailService {
69 sendPasswordResetMail ( to : string , resetLink : string ) : Promise < void > ;
710 sendAccountConfirmationMail ( to : string , confirmationLink : string ) : Promise < void > ;
You can’t perform that action at this time.
0 commit comments