Go to file
Matteo Manzinello add804a340 ncu 2019-05-07 14:44:46 +02:00
assets aggiornato README 2019-05-06 12:52:30 +02:00
dist gulp 2019-05-07 14:44:14 +02:00
src aggiunti molti commenti 2019-05-07 13:32:17 +02:00
.gitignore aggiornato gitignore 2019-05-05 22:18:53 +02:00
README.md aggiornato il README 2019-05-07 14:43:24 +02:00
gulpfile.js ottengo correttamente i parametri 2019-05-03 18:11:00 +02:00
package.json ncu 2019-05-07 14:44:46 +02:00
yarn.lock ncu 2019-05-07 14:44:46 +02:00

README.md

💌 mailgo - a different mailto (WIP)

mailgo screencast (see it in action! https://mailgo.js.org)

what?

mailgo will substitute all the mailto: links with the mailgo modal

mailgo modal

installation

add at the end of the <body>

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

or download the script here and

<body>
...
<script src="path/to/mailgo/mailgo.min.js"></script>
</body>

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

<a href="#mailgo" data-address="matteo" data-domain="manzinello.dev">write me!</a>

  • add href="#mailgo" to <a>
  • add data-address and data-domain to re-create your email address

no-spam usage #2

<a class="mailgo" data-address="matteo" data-domain="manzinello.dev">write me!</a>

  • add class="mailgo" to <a>
  • add data-address and data-domain to re-create your email address

exclude a mailto

to exclude a mailto link add to the <a> element the class no-mailgo like in this example:

<a class="no-mailgo" href="mailto:matteo@manzinello.dev">matteo@manzinello.dev</a>

NPM

https://mailgo.js.org