Skip to content

Commit 735f127

Browse files
committed
chore(emails): Normalizing sendEmail with SMTP method result
1 parent c64debc commit 735f127

File tree

1 file changed

+2
-2
lines changed
  • packages/emails/src/providers/smtp

1 file changed

+2
-2
lines changed

packages/emails/src/providers/smtp/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const sendEmail = async (
9393
headers: { Authorization: `Bearer ${smtpConfig.auth.pass}` },
9494
},
9595
);
96-
return { status: 202, message: `emailId: #${data.id}` };
96+
return { status: 202, message: data.id };
9797
} catch (err: any) {
9898
if (err.response) {
9999
const error: any = new Error('Error sending email with Resend API');
@@ -107,7 +107,7 @@ const sendEmail = async (
107107
}
108108
if (transporter) {
109109
const info = await transporter.sendMail(mailOptions);
110-
return { status: 202, message: `messageId: #${info.messageId}` };
110+
return { status: 202, message: info.messageId };
111111
}
112112
throw new Error('Error configuring SMTP settings');
113113
};

0 commit comments

Comments
 (0)