Skip to main content

Usage for mailto

Default#

After any type of installation, by default all the mailto: links will be enabled with mailgo automatically and will appear also cc, bcc, subject and body parameter, if provided.

<a href="mailto:info@mailgo.dev">info@mailgo.dev</a>

Here an example of dark mode, you can read the default about it here.

info@mailgo.dev
<a class="dark" href="mailto:info@mailgo.dev"  >info@mailgo.dev (dark mode)</a>
info@mailgo.dev (dark mode)

Do you want to prevent the spam? Use a less-spam usage instead the default usage!

A less spam usage (#1, recommended)#

<a href="#mailgo" data-address="matteo" data-domain="mailgo.dev"  >write me!</a>
write me!
  • add href="#mailgo" to <a>
  • add data-address and data-domain to re-create your email address

Another less spam usage (#2)#

<a class="mailgo" data-address="matteo" data-domain="mailgo.dev" href=""  >write me!</a>
write me!
  • add class="mailgo" to <a>
  • add data-address and data-domain to re-create your email address

Exclude a single mailto#

To exclude a single mailto link add to the <a> element the class no-mailgo

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