21 lines
792 B
TypeScript
21 lines
792 B
TypeScript
import { EntityDict } from '../../oak-app-domain';
|
|
import { BRC } from '../../types/RuntimeCxt';
|
|
import Email, { EmailOptions } from '../../types/Email';
|
|
import { BackendRuntimeContext } from '../../context/BackendRuntimeContext';
|
|
import { EmailConfig } from '../../types/Config';
|
|
export default class Nodemailer implements Email<EntityDict> {
|
|
name: string;
|
|
getConfig(context: BackendRuntimeContext<EntityDict>, systemId?: string): Promise<{
|
|
config: EmailConfig;
|
|
}>;
|
|
sendEmail(options: EmailOptions, context: BRC<EntityDict>): Promise<{
|
|
success: boolean;
|
|
info: import("nodemailer/lib/smtp-transport").SentMessageInfo;
|
|
error?: undefined;
|
|
} | {
|
|
success: boolean;
|
|
error: string | undefined;
|
|
info?: undefined;
|
|
}>;
|
|
}
|