1简单的做个链接就行了
复制代码
代码如下:
<a href="mailto:test@163.com">给我发邮件</a>
2. 复杂的链接
代码:
复制代码
代码如下:
<pre name="code" class="html"><a href="mailto:test@163.com?cc=test@163.com&bcc=test@163.com&subject=hello&body=你好">给我发邮件</a></pre>
<pre></pre> 参数说明: <p style="color:rgb(51,51,51); font-family:arial; font-size:14px; line-height:26px"> </p> <p style="color:rgb(51,51,51); font-family:arial; font-size:14px; line-height:26px"> cc:抄送地址;</p> <p style="color:rgb(51,51,51); font-family:arial; font-size:14px; line-height:26px"> bcc:密件抄送地址;</p> <p style="color:rgb(51,51,51); font-family:arial; font-size:14px; line-height:26px"> subject:主题;</p> <p style="color:rgb(51,51,51); font-family:arial; font-size:14px; line-height:26px"> body:邮件内容。</p> <p style="color:rgb(51,51,51); font-family:arial; font-size:14px; line-height:26px"> 注:多个邮件地址用";"隔开。</p>
以上就是html发送邮件通过mailto简单实现的详细内容。
