# 💌 mailgo - a different mailto (WIP) ![mailgo screencast](/assets/video/mailgo-screencast.gif) (see it in action! ) See the docs on npm for a more stable version of mailgo, the README of GitHub is referencing to the latest WIP **mailgo**: 0.3.0. ## what? mailgo will substitute all the `mailto:` links with the **mailgo modal** [![mailgo.min.js size](https://img.shields.io/github/size/manzinello/mailgo/dist/mailgo.min.js.svg?label=mailgo.min.js&style=flat-square)](https://unpkg.com/mailgo@0.3.0/dist/mailgo.min.js) mailgo modal --- ## installation add at the end of the `` ``` ... ``` you can also import mailgo in `` using `defer` ``` ... ``` (note: the GitHub `/dist` is totally unstable, use `unpkg` or `npm` to test **mailgo**, thanks!) --- ## usage ### default **by default all the `mailto:` links will be enabled with mailgo only importing the script!** (and with the default usage in the modal will appear also cc, bcc, subject and body parameter if provided) Do you want to prevent the spam? Use a _no-spam usage_ instead the default usage ### no-spam usage #1 (recommended) `write me!` - add `href="#mailgo"` to `` - add `data-address` and `data-domain` to re-create your email address ### no-spam usage #2 `write me!` - add `class="mailgo"` to `` - add `data-address` and `data-domain` to re-create your email address ### no-spam usage #3 `write me!` - add the attribute `mailgo` to `` - add `data-address` and `data-domain` to re-create your email address #### exclude a mailto to exclude a mailto link add to the `` element the class `no-mailgo` like in this example: ``` matteo@manzinello.dev ``` this solution can be applied only to the default installation (`` element with href starting with `mailto:`, the classic mailto link) --- ## browsers support // WIP --- [![NPM](https://nodei.co/npm/mailgo.png?stars=true)](https://www.npmjs.com/package/mailgo)