Manage email settings and logs inside the Kroxt Console with the following features:
Configure SMTP host (defaults to `smtp.gmail.com`), port (`465`), SSL/TLS verification toggle, and username/password.
Simply insert your Resend API token (`re_...`) and configure custom fallback domain sender emails.
await baas.communication.sendEmail({
to: "user@example.com",
subject: "Welcome to Kroxt",
html: "<p>Hi {{name}}! We are glad to have you.</p>",
variables: { name: "John Doe" },
});Import type definitions for custom email option payloads directly from the SDK:
import type { EmailOptions } from "@kroxt/baas-sdk";
const options: EmailOptions = {
to: "user@example.com",
subject: "Welcome to Kroxt",
html: "<p>Hi {{name}}!</p>",
variables: { name: "John Doe" },
};
const result = await baas.communication.sendEmail(options);
if (result.success) {
console.log(result.message);
}