postio / libraries /nestjs-libraries /src /emails /empty.provider.ts
Leon4gr45's picture
Upload folder using huggingface_hub (part 10)
a271c58 verified
Raw
History Blame Contribute Delete
346 Bytes
import { EmailInterface } from './email.interface';
export class EmptyProvider implements EmailInterface {
name = 'no provider';
validateEnvKeys = [];
async sendEmail(to: string, subject: string, html: string) {
return `No email provider found, email was supposed to be sent to ${to} with subject: ${subject} and ${html}, html`;
}
}