The blocks of the editor are React Email components. Send a component you wrote, build from blocks without code, or start from a ready-made template.
import { render } from '@react-email/render'import { OpenSend } from '@open-send/opensend'import { Welcome } from './emails/welcome' const opensend = new OpenSend() const html = await render(<Welcome name="Ada" />) await opensend.emails.send({ from: 'Acme <hello@mail.example.com>', to: 'ada@example.com', subject: 'Welcome to Acme', html,})Render it with React Email and send the HTML with one call. Nothing about your components has to change.
Store the rendered HTML once, with its variables. Publish it, and any program sends it by name.
const html = await render(<Welcome name="{{NAME}}" />) const template = await opensend.templates.create({ name: 'Welcome', subject: 'Welcome, {{NAME}}', html,})A design is a tree of blocks, and each block is a React Email component. The editor writes it, an agent can write it, and so can you.
import { OpenSend } from '@open-send/opensend' const opensend = new OpenSend() const template = await opensend.templates.create({ name: 'Order shipped', subject: 'Your order {{ORDER}} is on its way', design: { preview: 'Order {{ORDER}} has shipped', style: { backgroundColor: '#f4f4f5', maxWidth: '600px', fontFamily: 'Arial, sans-serif' }, body: [ { kind: 'Container', style: { backgroundColor: '#ffffff', padding: '24px' }, children: [ { kind: 'Heading', as: 'h2', text: 'Thanks, {{NAME}}' }, { kind: 'Text', text: 'Your order {{ORDER}} left our warehouse today.' }, { kind: 'Button', href: '{{TRACKING_URL}}', text: 'Follow your order', style: { backgroundColor: '#111111', color: '#ffffff', padding: '12px 20px' }, }, ], }, ], },}) console.log(template.variables, template.text)Hold other blocks
Section, Row, Column and Container.
Hold text
Text, Heading, Button, Link, Markdown, CodeBlock and CodeInline.
Draw
Img shows a picture and Hr draws a line.
Your own markup
Html goes into the email as you wrote it.
63 ready-made emails, each built from these blocks and drawn in 6 looks.
An invitation that names the inviter and the role being offered.
A shipping notification with the order number, carrier and estimated delivery in a bordered details table, plus a tracking button.
The plain one: a headline, a line, an optional quote and a link.
A changelog release note: cover image, headline and lead, three numbered changes, and a link to the full entry.
A formal invitation with the date, the place and a one-click reply to accept or decline.
Confirms a table booking with the party size, the time and the cancellation terms.
What people ask before they bring React Email here.
No. A template is stored as blocks or as HTML, and sending one needs no React in your program. React Email is what draws the blocks on our side.
No. Render the component to HTML first, with the render function of React Email, and send that HTML. It is one line in your program.
Section, Row, Column, Container, Text, Heading, Button, Link, Img, Hr, Markdown, CodeBlock and CodeInline, and Html for markup of your own.
The HTML is made by the renderer of React Email, as tables and inline styles, which is the markup mail apps accept. Send yourself a test before you send to anyone else.
No. React Email is an open source project of its own, made by the team behind Resend. OpenSend draws email with its components and is not affiliated with it.
Create a key and send, or clone the repository and run it yourself.