QQ開放平臺推出一鍵發(fā)送郵件功能,凡郵箱用戶可以登陸http://open.mail.qq.com 獲取一鍵發(fā)送郵件、郵件分享的代碼。可以在網(wǎng)頁、論壇中輕松實(shí)現(xiàn),一鍵分享。
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:'', /*默認(rèn)分享理由(可選)*/
- summary:'',/*摘要(可選)*/
- title:'',/*分享標(biāo)題(可選)*/
- site:'',/*分享來源 如:騰訊網(wǎng)(可選)*/
- 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>