mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-28 10:52:04 +08:00
fix: name max 30 && /external/api/send_mail not return result (#222)
This commit is contained in:
@@ -161,7 +161,8 @@ api.post('/external/api/send_mail', async (c) => {
|
||||
return c.text("No address", 400)
|
||||
}
|
||||
const reqJson = await c.req.json();
|
||||
return await sendMail(c, address, reqJson);
|
||||
await sendMail(c, address, reqJson);
|
||||
return c.json({ status: "ok" })
|
||||
} catch (e) {
|
||||
console.error("Failed to send mail", e);
|
||||
return c.text(`Failed to send mail ${e.message}`, 400)
|
||||
|
||||
Reference in New Issue
Block a user