feat: Add eduardo to the list of contact emails
This commit is contained in:
@@ -50,14 +50,17 @@ 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({
|
||||
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
|
||||
});
|
||||
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 ){
|
||||
|
||||
Reference in New Issue
Block a user