onRecordAfterCreateRequest((e) => { const message = new MailerMessage({ from: { address: $app.settings().meta.senderAddress, name: $app.settings().meta.senderName, }, to: [{address: e.record.email()}], subject: "YOUR_SUBJECT...", html: "YOUR_HTML_BODY...", // bcc, cc and custom headers are also supported... }) $app.newMailClient().send(message) }, "user") routerAdd("GET", "/hello/:name", (c) => { let name = c.pathParam("name") return c.json(200, { "message": "Hello " + name }) })