Skip to content

Commit 4f59bc8

Browse files
authored
fix: send email to unsubs (#3783)
1 parent 587eebb commit 4f59bc8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/betterAuth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ export const getBetterAuthOptions = (pool: Pool): BetterAuthOptions => {
539539
identifiers: { id: user.id },
540540
message_data: { url, name: user.name },
541541
to: user.email,
542+
send_to_unsubscribed: true,
542543
});
543544
},
544545
password: {
@@ -572,6 +573,7 @@ export const getBetterAuthOptions = (pool: Pool): BetterAuthOptions => {
572573
identifiers: { email },
573574
message_data: { otp, type },
574575
to: email,
576+
send_to_unsubscribed: true,
575577
});
576578
},
577579
}),

0 commit comments

Comments
 (0)