ClickBase sends verification codes, password-reset codes, welcome emails and your own transactional emails to your users. You can use your own SMTP (Gmail app password, Zoho, cPanel mail, Brevo, Mailgun SMTP…) so emails come from your domain — or fall back to the ClickBase platform mailer.
Setup
Console → Email → SMTP settings. Send a test. Then edit the Templates (subject + HTML with {{code}}, {{app}}, {{name}}, {{email}}).
Auth emails (automatic)
await app.auth.sendVerification(); // emails {{code}} using the "verify" template
await app.auth.verifyEmail("123456");
await app.auth.forgotPassword("ali@x.com"); // "reset" template
await app.auth.resetPassword("ali@x.com", "123456", "newPassword");Turn on Require verified email (Authentication → Sign-in methods) to block API access until the user verifies. Enable the welcome template to greet new sign-ups.
Custom emails from your server
POST /v1/{pid}/email/send (X-API-Key: secret key)
{ "to": "ali@x.com", // or "uid": "…"
"subject": "Invoice {{no}} for {{name}}",
"html": "<p>Hi {{name}}, your invoice {{no}} is attached below…</p>",
"vars": { "name": "Ali", "no": "INV-22" } }
// PHP: $cb->email->send(["uid" => $uid, "subject" => "…", "text" => "…"]);
// Node: admin.email.send({ to, subject, html })Limits: 500 emails / project / day by default. Every send is logged (Console → Email → Log) including SMTP errors. Bulk sending to all users is available from the console (max 500 per batch).
Was this page helpful? Tell us. · Download SDK