const { error } = await backend.emails.send({
to: "[email protected]", // or an array, max 50
subject: "Your receipt",
html: "<h1>Thanks!</h1>",
from: "Acme Billing", // sender NAME, not an address
replyTo: "[email protected]", // optional
});
Sends work with the publishable key. Prefer sending from server code or a
serverless function so you control what triggers an email.