Skip to content
MyAppBuilder
StableAction

Send email

Overview

Sends an email from your app — a confirmation to a customer, a notification to your team.

Purpose

Runs on the server using the RESEND_API_KEY secret of the current environment (or the platform's key). Use dynamic data in the recipient, subject and body to personalise the message.

Inputs

  • To — the recipient. Dynamic (Current user › email, Current record › Email, Form › email) for signed-in users; visitors who are not signed in may only send to a fixed address you type here.
  • Subject — up to 200 characters, templates allowed.
  • Body — plain text up to 20,000 characters. Blank lines start new paragraphs; {{…}} placeholders are filled in.

Configuration

  • Add RESEND_API_KEY as a secret under Settings → Environments for Production (and Staging if you test there).
  • Write the body as plain text; the app wraps it in a simple branded layout. Links are included as text.
  • For emails that must always go out — even when the user acts outside the app — use a workflow Send email step instead.

Outputs

  • Last result — { status } where status is sent, or logged when no email provider key is configured (the email is kept in the outbox instead of being delivered).

Example

Booking confirmation

Example
Form › On success:
  1. Send email
     To: Form › email
     Subject: Your booking on {{form.date}}
     Body: Hi {{form.name}},

           We've received your booking for {{form.date}} at {{form.time}}.

           See you soon!

Errors

  • “Sign in to send email from this app.” — an anonymous visitor tried to send to a dynamic recipient.
  • “Invalid email recipient.” — the To value is not an email address.
  • “Email could not be sent: …” — the provider rejected the message (bad key, unverified sender domain).
  • Rate limit: 20 emails per hour for signed-in users, 5 per hour for visitors.

Limitations

  • One recipient per action; no attachments; plain-text body only (no HTML).
  • Without a provider key, emails are logged, not delivered — check the dev outbox while developing.
  • If an action fails, the remaining actions in the list are skipped and an error message is shown to the user.

Advanced

  • Schema: { type: "send_email", to: Binding, subject: Binding, body: Binding, template? }. Server-side; the HTML is produced by emailLayout(subject, paragraphs); the row is stored in email_outbox with its status.
  • The per-app key is read with getSecret(projectId, envKey, "RESEND_API_KEY") and falls back to the platform key.

Related

Was this helpful?