Skip to content

Commit e772320

Browse files
committed
WIP
1 parent f81ab65 commit e772320

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/core/src/mailers/mailers/Mailer.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@ export default abstract class Mailer {
4848
options: ExtendedMailOptions,
4949
): Promise<TypedResult<SMTPTransport.SentMessageInfo, Error>> {
5050
try {
51-
const result = await this.adapter.sendMail({
51+
// Mailgun accepts extended options including 'recipient-variables' for batch sending.
52+
// We cast to Mail.Options since nodemailer's Transporter type doesn't support
53+
// transport-specific extensions, but the Mailgun transport handles this at runtime.
54+
const mailOptions: Mail.Options = {
5255
...options,
5356
from: options.from || Mailer.from,
5457
'recipient-variables': safeRecipientVariables(options),
55-
} as Mail.Options)
58+
} as Mail.Options
59+
60+
const result = await this.adapter.sendMail(mailOptions)
5661
const info = this.ensureSendMessageInfo(result, options)
5762
const failed = info.rejected.concat(info.pending).filter(Boolean)
5863

packages/emails/src/templates/issues/IssueEscalatingMail.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ export default function IssueEscalatingMail({
158158
<Text.H2B>started escalating</Text.H2B>
159159
</Section>
160160
<Text.H5 display='block' color='foregroundMuted'>
161-
This alert was triggered because the issue occurred in the last 24
162-
hours, has at least 20 occurrences in the past 7 days, and the recent
163-
rate is over 2× higher than the previous 7-day period.
161+
You’re seeing this alert because this issue triggered in the last 24 hours, it has triggered at least 20 times in the last 7 days, and in the last day, it’s been triggering about twice as often as it did over the past week.
164162
</Text.H5>
165163

166164
<Section className='mt-9 mb-6'>

0 commit comments

Comments
 (0)