Home  >  Article  >  Web Front-end  >  A simple way to send html emails through Mailto

A simple way to send html emails through Mailto

高洛峰
高洛峰Original
2017-03-10 13:17:4617721browse

Add a click-to-send email function to the customer's footer mailbox. There are simple links and complex links. There are detailed parameter descriptions for complex links. Interested friends can refer to the following Recently, I added a click-to-send email function to the customer's email address in the footer. I searched it on Baidu, and the solution is very simple.

1 Just make a link.

The code is as follows:

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

2. Complex link
Code:

The code is as follows:

<pre name="code" class="html"><a href="Mailto:test@163.com?CC=test@163.com&BCC=test@163.com&Subject=Hello&Body=你好">给我发邮件</a>
 
参数说明: 

CC:抄送地址;

BCC:密件抄送地址;

Subject:主题;

Body:邮件内容。

注:多个邮件地址用";"隔开。


The above is the detailed content of A simple way to send html emails through Mailto. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn