Embed beautiful temporary email interfaces into your website with one line of code
Include the SendBun embed script in your HTML:
<!-- Step 1: Load the web component -->
<script src="https://embed.sendbun.com/sendbun-embed.js"></script>Use the <sendbun-mail> element anywhere in your HTML:
<!-- Step 2: Add the component to your page -->
<sendbun-mail design="quickrelay"></sendbun-mail>Add attributes to customize size, design, and background color:
<!-- Optional: Customize with attributes -->
<sendbun-mail
design="zerohub"
height="600px"
width="100%"
bg-color="#c0000"
></sendbun-mail>Premium look with refined aesthetics and smooth interactions.
design="quickrelay"Timeless interface that works across all user demographics.
design="zerohub"Modern dark mode with stunning visual effects.
design="maildock"Contemporary interface with dynamic animations.
design="inboxgate"| Attribute | Type | Default | Description |
|---|---|---|---|
design |
string | quickrelay | Which design to display: quickrelay, zerohub, maildock, inboxgate |
height |
string | 100vh | Height of the embed container (e.g., "600px", "100%") |
width |
string | 100% | Width of the embed container (e.g., "400px", "100%") |
bg-color |
string | transparent | Background color of the embed (e.g., "#c0000", "white", "rgb(192, 0, 0)") |
Display the embed at full screen size:
<sendbun-mail design="quickrelay"></sendbun-mail>Embed with specific dimensions and background color:
<sendbun-mail design="zerohub" height="600px" width="400px" bg-color="#c0000"></sendbun-mail>Use different design styles with custom background:
<sendbun-mail design="maildock" height="500px" bg-color="#ffffff"></sendbun-mail>Make embed responsive with CSS and custom background:
<div style="width: 100%; max-width: 500px;">
<sendbun-mail design="inboxgate" bg-color="#f0f0f0"></sendbun-mail>
</div>Premium look with refined aesthetics and smooth interactions.
design="quickrelay"Timeless interface that works across all user demographics.
design="zerohub"Modern dark mode with stunning visual effects.
design="maildock"Contemporary interface with dynamic animations.
design="inboxgate"Yes! The embed uses an iframe with the sandbox attribute, providing security isolation. Your users' data is protected.
Yes! We offer 4 unique designs to choose from (quickrelay, zerohub, maildock, inboxgate). Each can be resized as needed.
No, the embed requires internet access to load the interface and connect to the API.
All modern browsers that support Web Components and iframes (Chrome, Firefox, Safari, Edge).
Yes! Click the copy icon next to any email address to copy it to your clipboard.
Supported attributes: design, height, and width. Use these to customize the embed appearance and size.