import nodemailer from "nodemailer";
export const transporter = nodemailer.createTransport({
host: process.env.EMAIL_SERVER,
port: parseInt(process.env.EMAIL_PORT ? process.env.EMAIL_PORT : "25"),
secure: Boolean(process.env.EMAIL_SECURE ? process.env.EMAIL_SECURE : false),
auth: {
user: process.env.EMAIL_USER,
pass: process.env.EMAIL_PASS
}
});
export const mailOptions = {
from: process.env.EMAIL_CONTACT_ADDRESS,
to: process.env.EMAIL_CONTACT_DEST,
html: `
|
Contact Via Website
[YOURFIELD]
[YOURFIELD]
[YOURFIELD]
[YOURFIELD]
[YOURFIELD]
YOUR COMPANY NAME |
|
|
`
};