From 4b6eea41c27e22f81e33356c1cf44fe4f2669444 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 23 Sep 2022 14:08:45 -0700 Subject: [PATCH 1/2] Updated recipieint for bounced emails since testing confirmed. --- server/email/sendemail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/email/sendemail.js b/server/email/sendemail.js index 277915d17..b00b3577b 100644 --- a/server/email/sendemail.js +++ b/server/email/sendemail.js @@ -215,7 +215,7 @@ exports.emailBounce = async function (req, res, next) { }); } if (body.notificationType === "Bounce") { - // const message = JSON.parse(body.Message); + // const message = JSON.parse(body.Message); let replyTo, subject, messageId; body.mail.headers.forEach((header) => { if (header.name === "Reply-To") { @@ -235,7 +235,7 @@ exports.emailBounce = async function (req, res, next) { transporter.sendMail( { from: `ImEX Online `, - to: "patrick@snapt.ca", // replyTo, + to: replyTo, bcc: "patrick@snapt.ca", subject: `ImEX Online Bounced Email - RE: ${subject}`, text: `ImEX Online has tried to deliver an email with the subject: ${subject} to the intended recipients but encountered an error. From 9249222fabd5593ac189a6243d757727b9f8fe4b Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Fri, 23 Sep 2022 14:10:16 -0700 Subject: [PATCH 2/2] Add missing query field. --- client/src/graphql/audit_trail.queries.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/graphql/audit_trail.queries.js b/client/src/graphql/audit_trail.queries.js index b0c0b3f40..793cc0001 100644 --- a/client/src/graphql/audit_trail.queries.js +++ b/client/src/graphql/audit_trail.queries.js @@ -26,6 +26,7 @@ export const QUERY_AUDIT_TRAIL = gql` subject to useremail + status } } `;