feat: Add eduardo to the list of contact emails

This commit is contained in:
Josepablo C
2025-06-27 21:22:06 -06:00
parent 9fd8b371eb
commit 494d8cad7f

View File

@@ -50,15 +50,18 @@ async function sendMailTemplate( receiver, subject, html ){
}
async function StandAloneContactEmail( content ){
const receiver = "support@etaviaporte.com";
/** Send out the contact email to the default list of people */
const receiver_list = ["support@etaviaporte.com", "eduardo.hernandez@etaviaporte.com"];
const {name, email, message } = content;
return await transporter.sendMail({
for(const receiver of receiver_list){
await transporter.sendMail({
from: `${name} <${default_from}>`,
to: receiver,
subject: "Contact Email From Landing Page",
text: `\n\n The following is an email from : ${email}\n\n\n` + message
});
}
}
async function AccountVerifyEmail( receiver, content ){
const subject = "[ETA] Account Verification";