diff --git a/README.md b/README.md index 72daf9d..beb19e8 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,15 @@ you can also import mailgo in `
` using `defer` ### default -**by default all the `mailto:` links will be enabled with mailgo only importing the script!** +**by default all the `mailto:` links will be enabled with mailgo automatically** (and with the default usage in the modal will appear also cc, bcc, subject and body parameter, if provided) -(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** -Do you want to prevent the spam? Use a _no-spam usage_ instead the default usage +to exclude a single mailto link add to the `` element the class `no-mailgo` like in this example + +``` +matteo@manzinello.dev +``` ### no-spam usage #1 (recommended) @@ -70,15 +74,26 @@ Do you want to prevent the spam? Use a _no-spam usage_ instead the default usage - add the attribute `mailgo` to `` - add `data-address` and `data-domain` to re-create your email address -#### exclude a mailto +### cc, bcc, body and subject -to exclude a mailto link add to the `` element the class `no-mailgo` like in this example: +**mailgo** also supports cc, bcc, subject and body in no-spam installation using the parameters: -``` -matteo@manzinello.dev -``` +- `data-cc-address` and `data-cc-domain` to recreate cc: `data-cc-address@data-cc-domain` +- `data-bcc-address` and `data-bcc-domain` to recreate bcc: `data-bcc-address@data-bcc-domain` +- `data-subject` for the subject of the email +- `data-body` for the body of the email -this solution can be applied only to the default installation (`` element with href starting with `mailto:`, the classic mailto link) +--- + +## example + +This is a complete **mailgo** example with the no-spam usage #1: + +`write me!` + +This is a more simple example (also with no-spam #1 usage): + +`write me!` ---