---
title: "html邮件链接mailto"
author: "小丑鱼0703"
date: "2014-04-23T15:17:49Z"
tags: []
categories: ["Web前端"]
slug: "html-mailto"
draft: false
lastmod: "2014-04-24T14:56:16Z"
id: 2053172
url: "https://wangjingyi.iteye.com/blog/2053172"
---

语法： mailto:URL?参数1=内容1&参数2=内容2
用&来分割多个参数条件。

4个参数：
subject ---代表邮件的标题
body     ---代表邮件的内容
cc ----代表一个抄送对象
bcc  ---代表一个暗送对象


```html
<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>