Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mailtoui with all npm packages installed. Try it out:

mailtoui lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("mailtoui/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mailtoui v1.0.3

A simple way to enhance your mailto links with a convenient user interface.


A simple way to enhance your mailto links with a convenient user interface.

Latest release Total downloads License Share on Twitter


MailtoUI is a JavaScript library that enhances your mailto links with a convenient user interface. It gives your users the flexibility to compose a new message using a browser-based email client or their default local email app.

MailtoUI is ideal for static sites or any other site where you don't want to spend time setting up a "Contact Us" form solution.

Quick Setup


Add MailtoUI via CDN to the bottom of your page, just before the closing </body> tag.

IMPORTANT: Be sure to replace [version] with the latest version number.

    <script src="[version]/dist/mailtoui-min.js"></script>


Attach your mailto link to MailtoUI by adding the class mailtoui to the <a> tag.

<a class="mailtoui" href="">Contact Tony</a>

That's it! Your mailto link is now using MailtoUI. Refresh your page and try it out.


For full documentation, visit


If you're interested in contributing to MailtoUI, please follow the directions in the contributing docs before working on a pull request.




RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free