feat: Add eduardo to the list of contact emails
This commit is contained in:
@@ -50,15 +50,18 @@ async function sendMailTemplate( receiver, subject, html ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function StandAloneContactEmail( content ){
|
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;
|
const {name, email, message } = content;
|
||||||
return await transporter.sendMail({
|
for(const receiver of receiver_list){
|
||||||
|
await transporter.sendMail({
|
||||||
from: `${name} <${default_from}>`,
|
from: `${name} <${default_from}>`,
|
||||||
to: receiver,
|
to: receiver,
|
||||||
subject: "Contact Email From Landing Page",
|
subject: "Contact Email From Landing Page",
|
||||||
text: `\n\n The following is an email from : ${email}\n\n\n` + message
|
text: `\n\n The following is an email from : ${email}\n\n\n` + message
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function AccountVerifyEmail( receiver, content ){
|
async function AccountVerifyEmail( receiver, content ){
|
||||||
const subject = "[ETA] Account Verification";
|
const subject = "[ETA] Account Verification";
|
||||||
|
|||||||
Reference in New Issue
Block a user