update formatting of bounced emails.
This commit is contained in:
@@ -240,14 +240,13 @@ exports.emailBounce = async function (req, res, next) {
|
|||||||
to: "patrick@snapt.ca", // replyTo,
|
to: "patrick@snapt.ca", // replyTo,
|
||||||
bcc: "patrick@snapt.ca",
|
bcc: "patrick@snapt.ca",
|
||||||
subject: `ImEX Online Bounced Email - RE: ${subject}`,
|
subject: `ImEX Online Bounced Email - RE: ${subject}`,
|
||||||
text: `
|
text: `ImEX Online has tried to deliver an email with the subject: ${subject} to the intended recipients but encountered an error.
|
||||||
ImEX Online has tried to deliver an email with the subject: ${subject} to the intended recipients but encountered an error.
|
|
||||||
|
|
||||||
${message.bounce?.bouncedRecipients.map(
|
${message.bounce?.bouncedRecipients.map(
|
||||||
(r) =>
|
(r) =>
|
||||||
`Recipient: ${r.emailAddress} | Status: ${r.action} | Code: ${r.diagnosticCode}
|
`Recipient: ${r.emailAddress} | Status: ${r.action} | Code: ${r.diagnosticCode}
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
(err, info) => {
|
(err, info) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user