Miscellaneous
mailTo()
Signature
Section titled “Signature”mailTo() — returns any
Description
Section titled “Description”Creates a mailto link tag to the specified email address, which is also used as the name of the link unless name is specified.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
emailAddress | string | yes | — | The email address to link to. |
name | string | yes | — | A string to use as the link text (“Joe” or “Support Department”, for example). |
encode | boolean | yes | false | Pass true here to encode the email address, making it harder for bots to harvest it for example. |
Examples
Section titled “Examples”#mailTo(emailAddress="webmaster@yourdomain.com", name="Contact our Webmaster")# -> <a href="mailto:webmaster@yourdomain.com">Contact our Webmaster</a>