mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-10 08:25:22 +02:00
26 lines
531 B
TypeScript
26 lines
531 B
TypeScript
import { sendEmailNotification } from "../utils/notifications/utils";
|
|
export const sendEmail = async ({
|
|
email,
|
|
subject,
|
|
text,
|
|
}: {
|
|
email: string;
|
|
subject: string;
|
|
text: string;
|
|
}) => {
|
|
await sendEmailNotification(
|
|
{
|
|
fromAddress: process.env.SMTP_FROM_ADDRESS || "",
|
|
toAddresses: [email],
|
|
smtpServer: process.env.SMTP_SERVER || "",
|
|
smtpPort: Number(process.env.SMTP_PORT),
|
|
username: process.env.SMTP_USERNAME || "",
|
|
password: process.env.SMTP_PASSWORD || "",
|
|
},
|
|
subject,
|
|
text,
|
|
);
|
|
|
|
return true;
|
|
};
|