feat: fix resend
This commit is contained in:
parent
08e7dfbe1d
commit
11c02f8433
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue