html mailto调用系统默认邮箱发送邮件方法
html mailto是一个比较实用的标签,电脑用户可以点击页面上的超链接或按钮 直接打开电脑默认的邮件客户端如outlook livemail foxmail 等等
下面介绍一下mailto的使用方法:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>html中使用mailto发送邮件</title>
</head>
<body>
使用超链接的方式发送<br><br>
<a href="mailto:406824643@qq.com?subject=test&cc=likecht@hotmail.com&body=testcontent">send mail</a>
<br><br><br><br>
点击按钮form提交的方式发送邮件
<form name='sendmail' action='mailto:406824643@qq.com'>
<input name='cc' type='text' value='likecht@hotmail.com'>
<input name='subject' type='text' value='test'>
<input name='body' type='text' value='testcontent'>
<input type="submit" value="send mail">
</form>
</html>
mailto参数说明:
| |
|
| |
|
| |
|
| |
|
| |
|
来源://作者:/更新时间:2014-07-09
顶
踩
相关文章:


