Email Integration
> Send transactional emails directly from your flows using Resend.
Brickr integrates with Resend to let you send emails as part of your flows. Use it for confirmation emails, notifications, password resets, or any automated email workflow.
Overview
The email integration uses Resend as the delivery provider. To send emails, you need:
1. A Resend account 2. A Resend API key configured in your workspace 3. A verified sender domain or email address in Resend
Configuring your API key
Before you can send emails, add your Resend API key to Brickr:
1. Sign up at resend.com and create an API key. 2. In Brickr, go to Dashboard > Settings > Integrations. 3. Enter your Resend API key. 4. Save.
Keep your API key secret. Do not share it or expose it in client-side code. Brickr stores it securely in your workspace settings.
The Send Email node
The Send Email node is available in the Builder under the integrations category. It sends an email when executed.
Inputs
| Input | Type | Description | |-------|------|-------------| | To | string | Recipient email address | | From | string | Sender email address (must be verified in Resend) | | Subject | string | Email subject line | | HTML | string | Email body as HTML | | Text | string | Plain text fallback (optional) | | Reply To | string | Reply-to address (optional) |
Outputs
| Output | Type | Description | |--------|------|-------------| | Success | boolean | Whether the email was sent successfully | | ID | string | The Resend message ID |
Sending a basic email
1. Add a Send Email node to your flow. 2. Connect the To input to the recipient's address (from a form, database, or inline value). 3. Set the From address to your verified sender. 4. Provide the Subject and HTML body. 5. Connect the sequence input to trigger the send.
Use the Template string node to build dynamic HTML email bodies. Insert variables like the recipient's name or order details into your email content.
Email templates
For complex emails, build reusable templates:
1. Create a Template node with your HTML layout. 2. Insert placeholders using string concatenation or template syntax. 3. Connect dynamic data (names, links, values) into the template inputs. 4. Pass the result to the Send Email node's HTML input.
Common patterns
Confirmation email on form submission
1. Set up a form trigger on a route. 2. Extract the email field from the submission data. 3. Use Send Email to send a thank-you message to the submitter.
Notification to admin
1. In any route, add a Send Email node. 2. Hardcode the admin's email in the To field. 3. Include relevant data in the email body.
Resend has its own sending limits based on your Resend plan. Check your Resend dashboard for delivery status and logs.
What's next?
| Topic | Description | |-------|-------------| | Webhooks | Receive events from external services | | Cron Jobs | Schedule automated flows | | Form Triggers | Trigger flows on form submission |