{mailto} automates the creation of a mailto: anchor links and optionally encodes them. Encoding emails makes it more difficult for web spiders to lift email addresses off of a site.
Technical Note: Javascript is probably the most thorough form of encoding, although you can use hex encoding too.
Attribute Name | Type | Required | Default | Description |
---|---|---|---|---|
address | string | Yes | n/a | The e-mail address |
text | string | No | n/a | The text to display, default is the e-mail address |
encode | string | No | none | How to encode the e-mail. Can be one of none, hex, javascript or javascript_charcode. |
cc | string | No | n/a | Email addresses to carbon copy, separate entries by a comma. |
bcc | string | No | n/a | Email addresses to blind carbon copy, separate entries by a comma |
subject | string | No | n/a | Email subject |
newsgroups | string | No | n/a | Newsgroups to post to, separate entries by a comma. |
followupto | string | No | n/a | Addresses to follow up to, separate entries by a comma. |
extra | string | No | n/a | Any extra information you want passed to the link, such as style sheet classes |
Example 8-23. {mailto} example lines followed by the result
|
See also escape, {textformat} and obfuscating email addresses.