next-enterprise/app/api/routes/mailTransporter.ts

22 lines
458 B
TypeScript
Raw Normal View History

2024-04-22 00:01:07 +05:30
const nodemailer = require("nodemailer")
export interface MailOptions {
from: string
to: string
}
export const transporter = nodemailer.createTransport({
host: "smtp.zoho.com",
port: 465,
secure: true,
auth: {
2024-04-22 05:13:51 +00:00
user: "keshawa@vizolelabs.com",
pass: process.env.NEXT_PUBLIC_ZOHO_PASS,
2024-04-22 00:01:07 +05:30
},
})
export const mailOptions: MailOptions = {
2024-04-22 05:13:51 +00:00
from: "Keshawa Anuhas <keshawa@vizolelabs.com>",
to: "Keshawa Anuhas <keshawa@vizolelabs.com>",
2024-04-22 00:01:07 +05:30
}