npx @insforge/cli secrets get ANON_KEY, or in the dashboard: click Install and open API Keys.
emails.send()
Send custom HTML emails to one or more recipients.Parameters
to(string | string[], required) - Recipient email(s), max 50 recipientssubject(string, required) - Email subject line, max 500 charactershtml(string, required) - HTML content of the emailcc(string | string[], optional) - CC recipient(s), max 50 recipientsbcc(string | string[], optional) - BCC recipient(s), max 50 recipientsfrom(string, optional) - Display name shown next to the sender address, max 100 characters (ignored when Custom SMTP is enabled)replyTo(string, optional) - Reply-to email address, must be a valid email address
By default, emails are sent from
noreply@<your-project>.send.insforge.dev, a per-project subdomain that InsForge Cloud provisions and verifies for you, so no domain setup is required. The from field only sets the display name shown next to that address; on the default provider you cannot change the address or domain. To send from your own domain, configure Custom SMTP. When Custom SMTP is enabled the from field is ignored entirely, and the sender name and email are taken from your SMTP configuration to prevent spoofing through your server.