Emails and OTP > Emails Overview
Emails and OTP > Emails OverviewKroxt BaaS SDK v1.0.5

Emails Overview

Kroxt BaaS supports email dispatch through Gmail/SMTP or the Resend API. You can define templated emails using standard Handlebars variables (`{{name}}`) in the dashboard and trigger verification OTP flows automatically.

Prerequisites:
  • Active credentials for Gmail SMTP (using TLS Port 465) or Resend API configured under project settings.
Simple Email Dispatch:
email.ts
1
2
3
4
5
const result = await baas.communication.sendEmail({
  to: "user@example.com",
  subject: "Verification Complete",
  html: "<h3>Your account setup is fully configured!</h3>",
});