Open Source — Drop-in Email Script

Native email sending.
1 line of code.

Upgrade your website's email experience. Intercept standard mailto: links and launch native compose windows for Gmail, Outlook, and Yahoo Mail instantly.

<script src="https://embedded.maillayer.wiki/maillayer.js"></script>

Zero Setup

No backend required. No OAuth credentials or server API keys to configure. Simply drop the script onto your page and start intercepting links.

Instant Pop-up

Launches a clean, distraction-free webmail composition window directly in the visitor's preferred web mail provider.

Provider Choice

Set global or per-link preferences for Gmail, Outlook Web, and Yahoo Mail using simple data attributes.

Auto-Detect

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

Frictionless Webmail

Makes webmail work seamlessly with modern web experiences without complicated or broken browser protocol handlers.

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>