Skip to content

Commit 181c6b8

Browse files
authored
fix(providers): bug when using nodemailer with SES (#11865)
1 parent 2f8320c commit 181c6b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/providers/nodemailer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export default function Nodemailer(
7272
text: text({ url, host }),
7373
html: html({ url, host, theme }),
7474
})
75-
const failed = result.rejected.concat(result.pending).filter(Boolean)
75+
const rejected = result.rejected || []
76+
const pending = result.pending || []
77+
const failed = rejected.concat(pending).filter(Boolean)
7678
if (failed.length) {
7779
throw new Error(`Email (${failed.join(", ")}) could not be sent`)
7880
}

0 commit comments

Comments
 (0)