diff --git a/packages/emails/templates/_base-email.ts b/packages/emails/templates/_base-email.ts index b3a7ff7bf8..6aefdeffa3 100644 --- a/packages/emails/templates/_base-email.ts +++ b/packages/emails/templates/_base-email.ts @@ -48,6 +48,17 @@ export default class BaseEmail { const payload = this.getNodeMailerPayload(); const parseSubject = z.string().safeParse(payload?.subject); const payloadWithUnEscapedSubject = { + headers: { + "X-SMTPAPI": JSON.stringify({ + filters: { + bypass_list_management: { + settings: { + enable: 1, + }, + }, + }, + }), + }, ...payload, ...(parseSubject.success && { subject: decodeHTML(parseSubject.data) }), };