Creates a mailto link tag to the specified email address, which is also used as the name of the link unless name is specified.
Name | Type | Required | Default | Description |
---|---|---|---|---|
emailAddress | string | Yes | The email address to link to. | |
name | string | No | A string to use as the link text ("Joe" or "Support Department", for example). | |
encode | boolean | No | false | Pass true here to encode the email address, making it harder for bots to harvest it for example. |
#mailTo(emailAddress="[email protected]", name="Contact our Webmaster")# -> <a href="mailto:[email protected]">Contact our Webmaster</a>