html发送邮件通过Mailto简单实现

建站知识 2021-07-02 22:41www.168986.cn长沙网站建设
最近给客户的页脚的邮箱加上点击发送邮件功能,自己百度了下,解决方法很简单

1简单的做个链接就行了

复制代码
代码如下:

<a href="Mailto:test@163.">给我发邮件</a>

2. 复杂的链接
代码:

复制代码
代码如下:

<pre name="code" class="html"><a href="Mailto:test@163.?CC=test@163.&BCC=test@163.&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>

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by