diff --git a/packages/core/src/providers/nodemailer.ts b/packages/core/src/providers/nodemailer.ts index 8568ef1cd8..a86b7d6705 100644 --- a/packages/core/src/providers/nodemailer.ts +++ b/packages/core/src/providers/nodemailer.ts @@ -72,7 +72,9 @@ export default function Nodemailer( text: text({ url, host }), html: html({ url, host, theme }), }) - const failed = result.rejected.concat(result.pending).filter(Boolean) + const rejected = result.rejected || [] + const pending = result.pending || [] + const failed = rejected.concat(pending).filter(Boolean) if (failed.length) { throw new Error(`Email (${failed.join(", ")}) could not be sent`) }