feat: fix resend

This commit is contained in:
Nevo David 2025-08-12 13:52:32 +07:00
parent 08e7dfbe1d
commit 11c02f8433
1 changed files with 12 additions and 8 deletions

View File

@ -14,14 +14,18 @@ export class ResendProvider implements EmailInterface {
emailFromAddress: string,
replyTo?: string
) {
const sends = await resend.emails.send({
from: `${emailFromName} <${emailFromAddress}>`,
to,
subject,
html,
...(replyTo && { reply_to: replyTo }),
});
try {
const sends = await resend.emails.send({
from: `${emailFromName} <${emailFromAddress}>`,
to,
subject,
html,
...(replyTo && { reply_to: replyTo }),
});
return sends;
return sends;
} catch (err) {
console.log(err);
}
}
}