A simple way to enhance your mailto links with a convenient user interface.
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.
Add MailtoUI via CDN to the bottom of your page, just before the closing
IMPORTANT: Be sure to replace
[version] with the latest version number.
<body> ... ... <script src="https://cdn.jsdelivr.net/npm/mailtoui@[version]/dist/mailtoui-min.js"></script> </body>
Attach your mailto link to MailtoUI by adding the class
mailtoui to the
<a class="mailtoui" href="mailto:email@example.com">Contact Tony</a>
That's it! Your mailto link is now using MailtoUI. Refresh your page and try it out.
For full documentation, visit mailtoui.com.
If you're interested in contributing to MailtoUI, please follow the directions in the contributing docs before working on a pull request.