JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 802
  • Score
    100M100P100Q94177F
  • License MIT

A convenient drop-in user interface for mailto links.

Package Exports

  • mailtoui/dist/mailtoui-min.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mailtoui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

MailtoUI

A convenient drop-in user interface for mailto links.

Introduction

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 your static sites or any other site where you don't want to spend time setting up a "Contact Us" form solution.

MailtoUI screenshot

Quick Setup

STEP 1

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

<body>
    ...
    ...
    <script src="https://cdn.jsdelivr.net/npm/mariordev/mailtoui@latest/dist/mailtoui-min.js"></script>
</body>

STEP 2

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

<a id="email-1" class="mailtoui" href="mailto:tony.stark@example.com">Contact Tony</a>

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

Documentation

For full documentation, visit mailtoui.com.

License

MIT