`

html邮件链接mailto

    博客分类:
  • html
阅读更多

语法: mailto:URL?参数1=内容1&参数2=内容2
用&来分割多个参数条件。

4个参数:
subject ---代表邮件的标题
body     ---代表邮件的内容
cc ----代表一个抄送对象
bcc  ---代表一个暗送对象

<a href="mailto:xxxx@126.com?cc=someone@163.com&bcc=someone2@qq.com&subject=Summer%20Party&body=You%20are%20invited%20to%20a%20big%20summer%20party!">发送邮件!</a>
<!--使用 %20 来替换单词之间的空格,因为在url传递参数的时候,一般都会序列化以保证参数的安全-->


有关url编码的内容详见:http://www.w3school.com.cn/tags/html_ref_urlencode.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics