Skip to content

Commit

Permalink
fix: fixed text break and from address in DMARC issue email
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 18, 2024
1 parent 6fc6455 commit 5502d9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
15 changes: 9 additions & 6 deletions emails/dmarc-issue/html.pug
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,20 @@ block content
tbody
tr
th: span.badge.badge-pill.badge-dark MAIL FROM
td: code= mailFrom
td: code.text-break= mailFrom
tr
th: span.badge.badge-pill.badge-dark RCPT TO
td
code= rcptTo
code.text-break= rcptTo
tr
th: span.badge.badge-pill.badge-primary Message-ID
td: code= messageId
td: code.text-break= messageId
tr
th: span.badge.badge-pill.badge-primary From
td= fromAddress
tr
th: span.badge.badge-pill.badge-primary Subject
td= subject
td.text-break= subject
tr
th: span.badge.badge-pill.badge-primary Date
td= date
Expand All @@ -51,10 +54,10 @@ block content
td.text-left= truthSource
tr
th= t("SMTP Response")
td.markdown-body.text-left: pre.mb-0: code= response
td.markdown-body.text-left.text-break: pre.mb-0: code.text-break= response
tr
th= t("DMARC Results")
td.markdown-body.text-left: pre.mb-0: code= JSON.stringify(dmarc, null, 2)
td.markdown-body.text-left.text-break: pre.mb-0: code.text-break= JSON.stringify(dmarc, null, 2)
.p-3
h2.h5= t("What will happen if I don't resolve this?")
p.card-text
Expand Down
1 change: 1 addition & 0 deletions helpers/on-data-mx.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ async function sendSysAdminEmail(template, err, session, headers) {
: '',
rcptTo: session.envelope.rcptTo.map((to) => to.address).join(', '),
messageId: getHeaders(headers, 'message-id'),
fromAddress: session.originalFromAddress,
subject: getHeaders(headers, 'subject'),
date: getHeaders(headers, 'date'),
response: err.response || err.message,
Expand Down

0 comments on commit 5502d9b

Please sign in to comment.