Merged in release/2022-09-23 (pull request #585)

Updated recipieint for bounced emails since testing confirmed.
This commit is contained in:
Patrick Fic
2022-09-23 21:10:48 +00:00
2 changed files with 3 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ export const QUERY_AUDIT_TRAIL = gql`
subject subject
to to
useremail useremail
status
} }
} }
`; `;

View File

@@ -235,7 +235,7 @@ exports.emailBounce = async function (req, res, next) {
transporter.sendMail( transporter.sendMail(
{ {
from: `ImEX Online <noreply@imex.online>`, from: `ImEX Online <noreply@imex.online>`,
to: "patrick@snapt.ca", // replyTo, to: replyTo,
bcc: "patrick@snapt.ca", bcc: "patrick@snapt.ca",
subject: `ImEX Online Bounced Email - RE: ${subject}`, 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. text: `ImEX Online has tried to deliver an email with the subject: ${subject} to the intended recipients but encountered an error.