Page MenuHomeSealhub

mailer.ts
No OneTemporary

mailer.ts

import type { App } from "../main";
import type { MessageData } from "./message";
export default abstract class Mailer {
app: App;
abstract verify(): Promise<boolean>;
abstract sendEmail(
message: MessageData & { from_name: string }
): Promise<void>;
async send(message_data: MessageData) {
return this.sendEmail({
...message_data,
from_name: this.app.ConfigManager.get("email").from_name,
});
}
async init(app: App) {
this.app = app;
}
}

File Metadata

Mime Type
text/x-java
Expires
Mon, Dec 23, 12:48 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
555180
Default Alt Text
mailer.ts (462 B)

Event Timeline