This commit is contained in:
2024-06-10 19:35:55 +05:00
parent ccca61d2bf
commit 201c96e219
+10 -6
View File
@@ -21,14 +21,18 @@ router.post("/", async (req, res) => {
});
// send mail with defined transport object
await transporter.sendMail({
from: "stream@graff.tech", // sender address
to: email, // list of receivers
subject: "Приглашение на демонстрацию - stream.graff.tech", // Subject line
html: `<div>
try {
await transporter.sendMail({
from: "stream@graff.tech", // sender address
to: email, // list of receivers
subject: "Приглашение на демонстрацию - stream.graff.tech", // Subject line
html: `<div>
Ссылка для подключения к демонстрации: <a href="${link}" target="_blank">${link}</a>
</div>`,
});
});
} catch (error) {
console.log("error", (error as Error).message);
}
res.json({ ok: 1 });
});