Open Source — Drop-in Email Modal

Native email sending.
1 line of code.

Upgrade your website's email experience. Intercept standard mailto: links and provide a native, integrated composition modal without leaving your app.

<script src="https://spuds0588.github.io/MailLayer-Embedded/maillayer.js"></script>

Zero Config

No backend required. No API keys to manage on your server. Just drop the script in and it works instantly via our hosted iframe.

Fully Brandable

Customize the primary color and theme (light/dark) using simple data attributes to match your website's unique look and feel.

Field Locking

Prevent users from changing the recipient or subject line. Perfect for support forms, feedback triggers, and hiring portals.

Auto-Detect

Optionally scan your page for plain-text email addresses and automatically transform them into native MailLayer triggers.

Gmail & Outlook

Users send emails using their own authenticated accounts. Secure, familiar, and delivered straight to their sent folder.

Open Source

Built with transparency and privacy in mind. Fully open source and free to use in your personal or commercial projects.

Usage Example

<!-- Intercept standard links -->
<a href="mailto:support@example.com">Contact Support</a>

<!-- Or use custom triggers with locked fields -->
<button class="maillayer-trigger" 
        data-maillayer-to="hiring@example.com"
        data-maillayer-lock-to="true"
        data-maillayer-color="e03616">
    Apply Now
</button>