feat: mail telegram and cron check

This commit is contained in:
opencode committed 2026-10-18 10:35:07 +02:00
1 parent 6e1d0a7568
commit 8b33242db1
6 files changed
+180

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import nodemailer from "nodemailer";
export async function sendMail(to: string, subject: string, text: string): Promise<void> {
const t = nodemailer.createTransport({
host: process.env.SMTP_HOST,
port: Number(process.env.SMTP_PORT ?? 587),
auth: { user: process.env.SMTP_USER, pass: process.env.SMTP_PASS },
});
await t.sendMail({ from: process.env.MAIL_FROM, to, subject, text });
}