api/src/modules/notifications/email/email.service.interface.ts
import { Logger } from '@nestjs/common';
export class SendMailDTO {
to: string;
subject: string;
html: string;
text?: string;
attachments?: MailAttachment[];
}
interface MailAttachment {
content: string;
filename: string;
type: string;
disposition: string;
}
export interface IEmailService {
logger: Logger;
sendMail(sendMailDTO: SendMailDTO): Promise<any>;
}