属性名称 | 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 or javascript. |
cc | string | No | n/a | e-mail addresses to carbon copy. Separate entries by a comma. |
bcc | string | No | n/a | e-mail addresses to blind carbon copy. Separate entries by a comma. |
subject | string | No | n/a | e-mail 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 |
mailto automates the creation of mailto links and optionally encodes them. Encoding e-mails makes it more difficult for web spiders to pick up e-mail addresses off of your site.
Technical Note: javascript is probably the most thorough form of encoding, although you can use hex encoding too.
Example 8-15. mailto
|