QQ开放平台推出一键发送邮件功能,凡邮箱用户可以登陆http://open.mail.qq.com 获取一键发送邮件、邮件分享的代码。可以在网页、论坛中轻松实现,一键分享。
HTML代码
XML/HTML代码
- <a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=fAUVDxcFEhkIPA0NUh8TEQ" style="text-decoration:none;"><img src="http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_mailme_01.png"/></a>
UBB代码
XML/HTML代码
- [img=http://mail.qq.com/cgi-bin/qm_share?t=qm_mailmeemail=fAUVDxcFEhkIPA0NUh8TEQ]http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_mailme_01.png[/img]
邮件分享代码
JavaScript代码
- <script type="text/javascript">
- (function(){
- var p = {
- url:location.href,
- to:'qqmail',
- desc:'', /*默认分享理由(可选)*/
- summary:'',/*摘要(可选)*/
- title:'',/*分享标题(可选)*/
- site:'',/*分享来源 如:腾讯网(可选)*/
- pics:'' /*分享图片的路径(可选)*/
- };
- var s = [];
- for(var i in p){
- s.push(i + '=' + encodeURIComponent(p[i]||''));
- }
- document.write(["<a target='_blank' ", 'href="http://mail.qq.com/cgi-bin/qm_share?', s.join(""), '"', ' style="cursor:pointer;text-decoration:none;outline:none"><img src="http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_share_01.png"/></a>'].join(""));
- })();
- </script>