update formatting of bounced emails.

This commit is contained in:
Patrick Fic
2022-09-23 13:35:33 -07:00
parent c2dd122370
commit 7aeac03b2c

View File

@@ -240,14 +240,13 @@ exports.emailBounce = async function (req, res, next) {
to: "patrick@snapt.ca", // 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.
text: `ImEX Online has tried to deliver an email with the subject: ${subject} to the intended recipients but encountered an error.
${message.bounce?.bouncedRecipients.map(
(r) =>
`Recipient: ${r.emailAddress} | Status: ${r.action} | Code: ${r.diagnosticCode}
${message.bounce?.bouncedRecipients.map(
(r) =>
`Recipient: ${r.emailAddress} | Status: ${r.action} | Code: ${r.diagnosticCode}
`
)}
)}
`,
},
(err, info) => {