分类

代码编辑器

phpmailer

phpmailer 2017 官方版

大小:28.4KB

语言:中文系统:/Win8/Win7/WinXP

类别:代码编辑器时间:2019-11-17 15:23

  • phpmailer截图1
phpmailer是一个用于发送电子邮件的PHP函数包。操作简单,体积小巧,可以直接用PHP就可以发送,无需搭建复杂的Email服务。有需要的朋友可以到本站进行下载哦!

phpmailer软件功能:

1.在发送邮时指定多个收件人,抄送地址,暗送地址和回复地址2.支持多种邮件编码包括:8bit,base64,binary和quoted-printable3.支持SMTP验证*.支持冗余SMTP服务器4.支持带附件的邮件和Html格式的邮件5.自定义邮件头6.支持在邮件中嵌入图片7.调试灵活8.经测试兼容的SMTP服务器包括:Sendmail,qmail,Postfix,Imail,Exchange等9.可运行在任何平台之上

phpmailer软件使用方法:

1.setSmtpConfig($option)设置smtp server 连接参数参数说明:$option : smtp服务器连接参数。注:本参数为数组。2.sendMail($to, $subject, $body)发送邮件内容参数说明:$to : 所发送的邮件地址。$subject : 邮件题目。$body : 邮件内容, 支持html标签。3.代码如下:require("phpmailer/class.phpmailer.php");function smtp_mail ( $sendto_email, $subject, $body, $extra_hdrs, $user_name) {$mail = new PHPMailer();1$mail->IsSMTP(); // send via SMTP phperz~com$mail->Host = "xx.xx.xx.xxx"; // SMTP servers$mail->SMTPAuth = true; // turn on SMTP authentication$mail->Username = "yourmail"; // SMTP username 注意:普通邮件认证不需要加 @域名$mail->Password = "mailPassword"; // SMTP password$mail->From = "你的邮件地址";?>

更多相关介绍

PHPMailer是一个用于发送电子邮件的PHP函数包。直接用PHP就可以发送,无需搭建复杂的Email服务。

phpmailer介绍

它提供的功能包括:
*.在发送邮时指定多个收件人,抄送地址,暗送地址和回复地址
*.支持多种邮件编码包括:8bit,base64,binary和quoted-printable
*.支持SMTP验证
*.支持冗余SMTP服务器
*.支持带附件的邮件和Html格式的邮件
*.自定义邮件头
*.支持在邮件中嵌入图片
*.调试灵活
*.经测试兼容的SMTP服务器包括:Sendmail,qmail,Postfix,Imail,Exchange等
*.可运行在任何平台之上

phpmailer内部函数

php本身提供了一个邮件发送函数mail,可以在程序中直接发送电子邮件,不过该函数要求服务器支持sendmail或者必须设置一台不需要中继的邮件发送服务器,但要找到一台不需要身份验证的邮件发送中继几乎不可能,所以使用mail函数往往无法成功发送email.
自己如果熟悉SMTP协议,结合socket功能就可以编写高效稳定的邮件发送程序,但对一般用户来说太困难.好在互联网上已经有很多别人编写好的邮件发送模块,我们只需要下载后简单调用即可,十分方便.

phpmailer邮件教程

第一步:需要下载PHPMailer文件包(下载地址见扩展阅读)
第二步:确认你的服务器系统已经支持socket如下图,通过phpinfo();查看是否支持sockets
如果没有这一项就请注意:socket是属于PHP扩展部分,编译时必须给定一个用于./configure--enable-sockets的配置选项。
第三步:把文件解压到你的web服务器目录下,调用类就可以了,说明:首先包含 class.phpmailer.php,然后创建对象,设置参数,调用成员函数。具体请见下面的示例代码:
以下为引用的内容:

phpmailer发送示例代码

下载该组件后,按如下示例编写代码即可实现php在线发送邮件.
一:前台表单
二:后台PHP程序

phpmailer群1发示例代码

require("class.phpmailer.php"); $mail=newPHPMailer(); //通过数组方式存储邮件接收者 $address=array('aaaaaa','bbbbbb'); //使用SMTP方式发送邮件 $mail->IsSMTP(); //邮局服务器 $mail->Host='smtp.exmail.*'; //开启SMTP验证 $mail->SMTPAuth=true; //邮局主机中的用户名 $mail->Username='admin'; //邮局密码 $mail->Password='123456'; //邮局端口,SMTP默认25端口 $mail->Port=25; //邮件发送者email地址 $mail->From='xxxxxxx'; //邮件来源(发件人) $mail->FromName='PHPMailer群1发Demo'; $len=count($address); for($i=0;$i<$len;$i++){ $mail->AddAddress($address[$i]); } $mail->Subject=$title;//邮件标题 $mail->Body=$content;//邮件内容 $mail->Send(); 图集phpmailer图册V百科往期回顾词条统计浏览次数:次编辑次数:18次历史版本最近更新:ghost3911(2017-11-28)突出贡献榜摆渡思物1介绍2内部函数2.1mail函数2.2Mail配置选项3邮件教程4发送示例代码5群1发示例代码搜索发现新手上路成长任务编辑入门编辑规则本人编辑我有疑问内容质疑在线客服官方贴吧意见反馈投诉建议举报不良信息未通过词条申诉投诉侵权信息封禁查询与解封©2019Baidu使用百度前必读|百科协议|隐私政策|百度百科合作平台|京ICP证030173号京公网安备11000002000001号进入词条清除历史记录关闭编辑讨论收藏赞登录分享分享到微信朋友圈打开微信“扫一扫”即可将网页分享至朋友圈window['__abbaidu_2020_subidgetf']=function(){ varsubid=01000000; returnsubid; };require.resourceMap({"res":{"wiki-lemma:widget/lemma_content/mainContent/lemmaRelation/lemmaInsert.js":{"url":"https://bkssl.bdimg.com/static/wiki-lemma/widget/lemma_content/mainContent/lemmaRelation/lemmaInsert_18f1b51.js","pkg":"wiki-lemma:p5","deps":["wiki-common:widget/component/nslog/nslog.js"]},"wiki-lemma:widget/lemma_content/mainContent/lemmaRelation/tangram.js":{"url":"https://bkssl.bdimg.com/static/wiki-lemma/widget/lemma_content/mainContent/lemmaRelation/tangram_459492a.js","pkg":"wiki-lemma:p5"}},"pkg":{"wiki-lemma:p5":{"url":"https://bkssl.bdimg.com/static/wiki-lemma/pkg/wiki-lemma-module-lemmaRelation_853c311.js"}}});!function(){var$=require('wiki-common:widget/lib/jquery/jquery'),userbar=require('wiki-common:widget/component/userbar-n/userbar-n');userbar.buildUserbar($('#j-wgt-userbar'),null);}();!function(){require('wiki-common:widget/component/headTabBar/headTabBar');}();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'), initSearchbar=require('wiki-common:widget/component/searchbar-n/searchbar'); initSearchbar($('.wgt-searchbar-main')); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery');varcookie=require('wiki-common:widget/util/cookie');if(!cookie.get('baikedeclare')){$('#J-declare-wrap').css('display','block');}$('#J-declare-close').on('click',function(){//用户关闭后,不再显示,这里暂设过期时间为1年cookie.set('baikedeclare','showed',{expires:365*60*60*24*1000,path:'/'});$('#J-declare-wrap').css('display','none');});}();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); vartimer=''; $('.wgt-navbar').on('mouseenter','dl',function(){ clearTimeout(timer); timer=setTimeout(function(){ $('.wgt-navbar').addClass('wgt-navbar-hover'); },300); }).on('mouseleave',function(){ clearTimeout(timer); $('.wgt-navbar').removeClass('wgt-navbar-hover'); }).on('click','a',function(){ clearTimeout(timer); $('.wgt-navbar').removeClass('wgt-navbar-hover'); }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.lemmaWgt-lemmaTitle.add-subLemma').css('display','inline-block'); $('.top-tool.add-sub-icon').css('display','inline-block'); } }else{ if('1'){ $('.lemmaWgt-lemmaTitle.add-subLemma').css('display','inline-block'); $('.top-tool.add-sub-icon').css('display','inline-block'); } } }); require('wiki-lemma:widget/basicElement/addSub/addSub.js')({lemmaId:'3708847',lemmaTitle:"phpmailer",lemmaDesc:null,versionId:'124110870',subLemmaId:'2341560'}); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.divide){ $('.top-tool.split-icon').css('display','block'); } } }); }();!function(){varnslog=require('wiki-common:widget/component/nslog/nslog'); require.async(["wiki-lemma:widget/basicElement/collect/collect"],function(collect){ collect({ newLemmaId:"3708847", lemmaId:"2341560", subLemmaId:"2341560" }); }); }();!function(){require.async(["wiki-lemma:widget/basicElement/topShare/topShare"],function(topShare){ topShare({ newLemmaId:'3708847' }); }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); varnsLog=require('wiki-common:widget/component/nslog/nslog'); varDialog=require("wiki-common:widget/ui/dialog/dialog"); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.lemmaWgt-lemmaTitle.edit-lemma').css('display','inline-block'); //编辑和申请本人实名验证保证同一行展示 if($('.lemmaWgt-lemmaTitle.personal').length>0){ if($('.lemmaWgt-lemmaTitle.edit-lemma').offset().left>$('.lemmaWgt-lemmaTitle.personal').offset().left){ $('.lemmaWgt-lemmaTitle.edit-lemma').before('

'); } } }else{ nsLog('10003104'); $('.lemmaWgt-lemmaTitle.lock-lemma').show(); //锁定和申请本人实名验证保证同一行展示 if($('.lemmaWgt-lemmaTitle.personal').length>0){ if($('.lemmaWgt-lemmaTitle.lock-lemma').offset().left>$('.lemmaWgt-lemmaTitle.personal').offset().left){ $('.lemmaWgt-lemmaTitle.lock-lemma').before('

'); } } } }else{ if('1'){ $('.lemmaWgt-lemmaTitle.edit-lemma').css('display','inline-block'); //编辑和申请本人实名验证保证同一行展示 if($('.lemmaWgt-lemmaTitle.personal').length>0){ if($('.lemmaWgt-lemmaTitle.edit-lemma').offset().left>$('.lemmaWgt-lemmaTitle.personal').offset().left){ $('.lemmaWgt-lemmaTitle.edit-lemma').before('

'); } } }else{ nsLog('10003104'); $('.lemmaWgt-lemmaTitle.lock-lemma').show(); //锁定和申请本人实名验证保证同一行展示 if($('.lemmaWgt-lemmaTitle.personal').length>0){ if($('.lemmaWgt-lemmaTitle.lock-lemma').offset().left>$('.lemmaWgt-lemmaTitle.personal').offset().left){ $('.lemmaWgt-lemmaTitle.lock-lemma').before('

'); } } } } }); varcanDiscussion=$('.j-discussion-link').length>0?true:false; if(canDiscussion){ //锁定跳转 $('body').on('click','.lock-lemma',function(){ varme=$(this); varcontent='' +'' +'词条锁定,暂时无法编辑' +'' +'亲爱的用户,词条存在争议或词条内容较完善都可能被锁定(' +'查看详情)。

' +'' +'如果你认为锁定词条内容存在问题需要修改,可进行以下操作:

'; newDialog({ title:'编辑提示', content:content, btns:[ { text:'参与词条讨论,反馈词条问题', key:'discussion' } ], onBtnClick:function(btnKey){ if(btnKey==='discussion'){ window.location.href='/planet/talk?lemmaId=3708847&category=1'; } } }).show(); }); //获取讨论数 $.get('/discussion/api/getdiscussioncount?lemmaId=3708847',function(res){ if(res&&res.errno===0&&res.data.discussionCount>0){ varnumText=res.data.discussionCount<=99?res.data.discussionCount:'99+'; $('.j-discussion-link.num').text(numText).show(); } }); $('.lemmaWgt-lemmaTitle.j-discussion-link').on('click',function(){ $(this).find('.num').remove(); }); //讨论按钮展现量 nsLog(90000101,window.location.href,{ lemmaid:3708847 }); } }();!function(){ require('wiki-lemma:widget/lemma_content/mainContent/basicInfo/basicInfo')(); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varnslog=require('wiki-common:widget/component/nslog/nslog'); nslog(10002701); $('.lemmaWgt-lemmaCataloga').on('click',function(){ nslog(10002702); }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.para-title.edit-icon').css('display','block'); } }else{ if('1'){ $('.para-title.edit-icon').css('display','block'); } } }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.para-title.edit-icon').css('display','block'); } }else{ if('1'){ $('.para-title.edit-icon').css('display','block'); } } }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.para-title.edit-icon').css('display','block'); } }else{ if('1'){ $('.para-title.edit-icon').css('display','block'); } } }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.para-title.edit-icon').css('display','block'); } }else{ if('1'){ $('.para-title.edit-icon').css('display','block'); } } }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.para-title.edit-icon').css('display','block'); } }else{ if('1'){ $('.para-title.edit-icon').css('display','block'); } } }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.para-title.edit-icon').css('display','block'); } }else{ if('1'){ $('.para-title.edit-icon').css('display','block'); } } }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); //展现策略 rightCheck.editView('3708847',function(res){ if(!res.errno){ if(res.data.edit){ $('.para-title.edit-icon').css('display','block'); } }else{ if('1'){ $('.para-title.edit-icon').css('display','block'); } } }); }();!function(){SyntaxHighlighter.all(); }();!function(){require('wiki-lemma:widget/lemma_content/configModule/zhixin/zhixin')( 3708847, 'phpmailer' ); }();!function(){require.async(["wiki-lemma:widget/lemma_content/mainContent/lemmaStatistics/lemmaStatistics"],function(init){ init({ newLemmaIdEnc:"7aefb4f441206077f2dc75bd" }); }); }();!function(){ require.async(["wiki-lemma:widget/lemma_content/mainContent/sideCatalog/sideCatalog"],function(SideCatalog){ newSideCatalog(); }); }();!function(){require.async(["wiki-lemma:widget/promotion/fengchao/fengchao","wiki-lemma:widget/promotion/unionAd/unionAd"],function(init,unionAd){ init({ newLemmaId:"3708847", lemmaTitle:"phpmailer", encodeLemmaTitle:"phpmailer", adManager:null },{ errFn:unionAd, dom:$('#side_box_unionAd') }); }); }();!function(){require.async(['wiki-lemma:widget/promotion/guessLike/guessLike'],function(app){ app.init({ lemmaTitle:'phpmailer', adManager:null }); }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varDialog=require("wiki-common:widget/ui/dialog/dialog"); varuserLogin=require('wiki-common:widget/component/userLogin/userLogin'); varunameFiller=require('wiki-common:widget/component/unameFiller/unameFiller'); varrightCheck=require('wiki-lemma:widget/tools/rightCheck/rightCheck'); varnsLog=require('wiki-common:widget/component/nslog/nslog'); varisEnterprise=false; varenterpriseOwnerUserId=0; varuserId=0; vareditUrl='/edit/'+encodeURIComponent('phpmailer')+'/'+'3708847'; varpgcUrl='/enterprise/editpgc?lemmaId=3708847'; varcanDiscussion=$('.j-discussion-link').length>0?true:false; userLogin.regist({ onLogin:function(user){ userId=user?user.uid:0; } }); functiongotoEdit(url,isMidNight){ if(isMidNight){ Dialog.alert({ title:'编辑提示', subMsg:'晚23:00至次日8:00,因审核系统例行维护,您提交的版本可能需要较长时间才能通过,望您谅解。', onConfirm:function(){ window.location.href=url; } }); }else{ window.location.href=url; } } functionshowChoseEditDialog(pgcCallback,ugcCallback){ newDialog({ title:'编辑提示', subMsg:'

您已开通企业百科服务,推荐您直接编辑“官方资料”,官方资料仅限企业百科绑定的百科账号修改,其他用户账号不可修改。

如果您想修改其他网友编辑的普通词条内容,请注意遵守百科百科编辑规则。

', btns:[{ key:'pgc', text:'编辑官方资料' },{ style:'white', text:'修改普通词条', key:'ugc' }], onBtnClick:function(btnKey){ if(btnKey==='pgc'){ pgcCallback&&pgcCallback(); }elseif(btnKey==='ugc'){ ugcCallback&&ugcCallback(); } } }).show(); } functioncheckUserLegal(res){ varlegal=false; switch(res.errno){ case100001: nsLog('10003106'); userLogin.showLoginPop(); break; case100006: unameFiller.show(); break; default: legal=true; } returntrue; } functioncheckUgc(res,url){ if(res.errno){ switch(res.errno){ case100005: alert('对不起,您目前被封禁'); break; case110001: alert('对不起,该词条被锁定'); break; case110007: alert('对不起,消歧页无法编辑'); break; case110005: nsLog('10003101'); varcontent='' +'' +'对不起,你暂时没有权限编辑该词条' +'' +'亲爱的用户,该词条内容已较完善,需百科等级达到4级且通过率达85%才可编辑哦。

' +'你当前百科等级为' +res.data.userInfo.level+'级、通过率' +res.data.userInfo.passRatio+'%,可进行以下操作:

'; varbtns=[ { key:'join', text:'反馈词条问题,参与百科共建' }, { text:'参加成长任务,提升编辑权限', key:'task' } ]; if(canDiscussion){ btns=[ { key:'discussion', text:'参与词条讨论,反馈词条问题' }, { text:'参加成长任务,提升编辑权限', key:'task' } ]; } newDialog({ title:'编辑提示', content:content, btns:btns, onBtnClick:function(btnKey){ if(btnKey==='discussion'){ window.location.href='/planet/talk?lemmaId=3708847&category=1'; }elseif(btnKey==='task'){ window.location.href='/usercenter#guide'; }elseif(btnKey==='join'){ window.location.href='/feedback'; } } }).show(); break; case110008: nsLog('10003102'); varcontent='' +'' +'对不起,你暂时没有权限编辑该词条' +'' +'亲爱的用户,该词条内容已较完善,需百科等级达到6级且通过率达85%才可编辑哦。

' +'你当前百科等级为' +res.data.userInfo.level+'级、通过率' +res.data.userInfo.passRatio+'%,可进行以下操作:

'; varbtns=[ { key:'join', text:'反馈词条问题,参与百科共建' }, { text:'参加成长任务,提升编辑权限', key:'task' } ]; if(canDiscussion){ btns=[ { key:'discussion', text:'参与词条讨论,反馈词条问题' }, { text:'参加成长任务,提升编辑权限', key:'task' } ]; } newDialog({ title:'编辑提示', content:content, btns:btns, onBtnClick:function(btnKey){ if(btnKey==='discussion'){ window.location.href='/planet/talk?lemmaId=3708847&category=1'; }elseif(btnKey==='task'){ window.location.href='/usercenter#guide'; }elseif(btnKey==='join'){ window.location.href='/feedback'; } } }).show(); break; case470001: alert('系统错误,请刷新重试'); break; case110003: nsLog('10003103'); Dialog.alert({ title:'编辑提示', subMsg:'很抱歉,该词条有其他用户编辑的版本正在提交,您暂时无法编辑。
百科建议您晚些时候再编辑该词条,或者尝试编辑其他的词条。' }); break; } }else{ if(!res.data.right.noAudit){ Dialog.alert({ title:'编辑提示', subMsg:'很抱歉,该词条有其他用户编辑的版本正在提交,您暂时无法编辑。
百科建议您晚些时候再编辑该词条,或者尝试编辑其他的词条。' }); return; } gotoEdit(url,res.data.notice.isMidNight); } } $(document.body).on('click','.j-edit-link',function(){ nsLog('10003100'); vardl=$(this).attr('data-edit-dl'); if(dl){ varurl=editUrl+'?dl='+dl; }else{ varurl=editUrl; } rightCheck.preeditCheck('3708847','phpmailer','phpmailer','124110870','',function(res){ if(!checkUserLegal(res)){ return; } if(isEnterprise&&enterpriseOwnerUserId===userId){ showChoseEditDialog(function(){ location.href=pgcUrl; },function(){ checkUgc(res,url); }); }else{ checkUgc(res,url); } }); }); }();!function(){require.async(["wiki-common:widget/lib/jquery/jquery","wiki-common:widget/component/footer/footer_feedback"],function($,feedback){ feedback({el:'#J-bk-feedback-main', proData:{ "extend_feedback_channel":null } }); feedback({el:'#J-bk-feedback-query',config:{ appid:215645, productLine:20184, needContactWay:true, issuePlaceholder:'亲爱的百度百科用户,请在此填写您的质疑内容及原因哦~' }, proData:{ "kw":$('#J-bk-feedback-query').data('lemma') } }); }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'), initSearchbar=require('wiki-common:widget/component/searchbar-n/searchbar'); initSearchbar($('.wgt-searchbar-simple')); }();!function(){require.async(["wiki-lemma:widget/tools/searchHeader/toolButtons-n/toolButtons"],function(init){ init({ lemmaId:"2341560", subLemmaId:"2341560", newLemmaId:"3708847" }); }); }();!function(){require('wiki-lemma:widget/tools/searchHeader/toolButtons-n/userInfo')(); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'), animation=require('wiki-common:widget/util/animation'), nslog=require('wiki-common:widget/component/nslog/nslog'), initSearchbar=require('wiki-common:widget/component/searchbar/searchbar'); varisFadeIn=false, isFadeOut=false; varfadeInAni,fadeOutAni; $(window).on('scroll',function(e){ varscrollTop=$(this).scrollTop(); if(scrollTop>200&&!isFadeIn&&$('.lemmaWgt-searchHeader').css('display')=='none'){ fadeOutAni&&fadeOutAni.stop(); fadeInAni=animation({ duration:200, easing:'linear', onStart:function(){ isFadeOut=false; isFadeIn=true; $('.lemmaWgt-searchHeader').css('display','block'); }, onStep:function(progress){ $('.lemmaWgt-searchHeader').css('opacity',progress) }, onComplete:function(progress){ isFadeIn=false; nslog(10010007); } }); }elseif(scrollTop<=200&&!isFadeOut&&$('.lemmaWgt-searchHeader').css('display')=='block'){ fadeInAni&&fadeInAni.stop(); fadeOutAni=animation({ duration:300, easing:'linear', onStart:function(){ $('.lemmaWgt-searchHeader#suggestion').hide(); isFadeIn=false; isFadeOut=true; }, onStep:function(progress){ $('.lemmaWgt-searchHeader').css('opacity',1-progress); }, onComplete:function(progress){ isFadeOut=false; $('.lemmaWgt-searchHeader').css('display','none'); } }); } }); }();!function(){require.async(['wiki-lemma:widget/tools/newSideShare/qzopensl']); require.async(["wiki-lemma:widget/tools/newSideShare/taskSideShare"],function(taskShare){ taskShare.init({ title:'phpmailer', desc:"PHPMailer\u662f\u4e00\u4e2a\u7528\u4e8e\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u7684PHP\u51fd\u6570\u5305\u3002\u76f4\u63a5\u7528PHP\u5c31\u53ef\u4ee5\u53d1\u9001\uff0c\u65e0\u9700\u642d\u5efa\u590d\u6742\u7684Email\u670d\u52a1\u3002", pic:'https:\/\/gss2.bdstatic.com\/-fo3dSag_xI4khGkpoWK1HF6hhy\/baike\/w%3D268\/sign=cd90fab59813b07ebdbd570e34d69113\/d4628535e5dde711a68d3e62acefce1b9c1661c2.jpg', url:'', qqPic:'https:\/\/gss2.bdstatic.com\/-fo3dSag_xI4khGkpoWK1HF6hhy\/baike\/whfpf%3D1024%2C1024%2C50\/sign=3c37fbbde0c4b74534c1e456a9c12f27\/d4628535e5dde711a68d3e62acefce1b9c1661c2.jpg', newLemmaId:'3708847', lemmaTitle:'phpmailer' }); }); }();!function(){var$=require('wiki-common:widget/lib/jquery/jquery'); varnslog=require("wiki-common:widget/component/nslog/nslog"); vartestElem=require('wiki-common:widget/component/testElem/testElem'); varcmsModuleLoader=require('wiki-common:widget/component/cmsModuleLoader/cmsModuleLoader'); functionrequireAsync(){ require.async(['wiki-lemma:widget/tools/announcement/announcement']); } cmsModuleLoader('/api/wikiui/getlemmaconfig',[{ name:'announcement', script:'wiki-lemma:widget/tools/announcement/announcement.js' }]); require.async(["wiki-lemma:widget/tools/lazyLoad/lazyLoad"],function(LazyLoad){ newLazyLoad(); }); require.async(['wiki-common:widget/component/nslog/nslog','wiki-common:widget/lib/jquery/jquery'],function(nslog,$){ nslog().setGlobal({ lemmaId:"2341560", newLemmaId:"3708847", subLemmaId:"2341560", lemmaTitle:"phpmailer" }); //词条页pv nslog(9322); //新版头部pv(小流量) if($('.pc-header-new').length>0){ nslog(9069); } //链接点击pv varlemmaPageRegExp=newRegExp(/\/subview\/\d+|\/view\/\d+|\/item\//i); $('body').on('mousedown','a',function(){ varhref=$(this).attr('href'); if(href&&href.indexOf('/')>=0&&href.indexOf('#')!==0){ //链接点击pv nslog(10000001); if(lemmaPageRegExp.test(href)){ //词条页链接点击pv nslog(10000002,window.location.href,{ targetTitle:$(this).text() }); } } }); /******词条页站内流转需求统计start******/ (function(){ //各种统计配置 varcirculationLinkCfg={ innerLink:[//内链 '.para', '.lemmaWgt-baseInfo-simple-largeMovie', '.lemmaWgt-baseInfo-simple-largeStar', '.basic-info.basicInfo-block', '.lemma-summary', '.lemmaWgt-lemmaSummary', '.view-tip-panel', '.horizontal-module', '.lemmaWgt-roleIntroduction', '.dramaSeries.dramaSerialList', '.module-music', '.table-view', '[log-set-param="table_view"]', '.list-module', '.cell-module', '.baseBox.dl-baseinfo',//配置后台字段 '.pvBtn-box.leadPVBtnWrapper', '.drama-actor', '#staffList', '.starMovieAndTvplay', '.main_tab:not(.main_tab-defaultTab)'//除去词条tab外的tab ], relationTable:'.rs-container-foot',//关系表 peopleRelation:'.star-info-block.relations,.lemmaWgt-focusAndRelation',//人物关系(明星+普通) moduleActors:'.featureBaseInfo.actors,.lemmaWgt-majorActors',//主要演员、嘉宾、主持人 moduleWorks:'.featureBaseInfo.works,.large-feature.works',//代表作品 moduleQuarterly:'.featureBaseInfo.po_quarterly,.mian_quarterly',//分季介绍 rankStar:'.rank-list.stars-rank',//明星榜 rankDrama:'.drama-rank-list',//电视剧榜 specialTopic:'.special-topic',//专题模块 modDetailTable:'#modDetailTable',//关系表出图 chuizhitu:'.chuizhitu',//垂直化模块 polysemantList:'.polysemantList-wrapper'//义项切换 }; /******连接统计******/ functionclickNslogFn(){ for(varkincirculationLinkCfg){ if(k==='innerLink'){ //词条内链到词条页 vartempArr=circulationLinkCfg[k]; for(vari=0,l=tempArr.length;i=0&&href.indexOf('#')!==0 &&tar==='_blank'&&lemmaPageRegExp.test(href)){ //词条页普通内链点击pv nslog(10000004,null,{division:key}); } }); }else{ //模块到词条页链接 $(circulationLinkCfg[k]).on('mousedown','a',{key:k},function(e){ varkey=e.data.key; varhref=$(this).attr('href'); if(href&&href.indexOf('#')!==0&&lemmaPageRegExp.test(href)){ //词条页配置模块链接点击pv nslog(10000004,null,{division:key}); } }); } } } //发起统计请求 clickNslogFn(); /******各模块展现量pv******/ functioncheckModuleIsShow(){ varresult=[]; for(varkincirculationLinkCfg){ if(k!=='innerLink'&&k!=='relationTable'){ !!$(circulationLinkCfg[k]).html()&&result.push(k); } } if(result.length>0){ nslog(10000005,null,{showModules:result.join(',')}); } } checkModuleIsShow(); })(); /******词条页站内流转需求统计end******/ }); //广告接入wikiad统一加载 //log词条页广告被拦截情况(此处log请求行为) nslog(70000101,window.location.href,{ api:'lemma-ad', action:'request' }); vartags=[]; vartagsArray=[]; for(varkeyintags){ tagsArray.push(tags[key].tagName); } $.ajax({ type:'GET', url:'/api/wikiad/getsquirrels', data:{ lemmaId:3708847, tags:tagsArray.join() }, cache:false, dataType:'JSON', success:function(res){ //log词条页广告被拦截情况(此处log请求成功) nslog(70000101,window.location.href,{ api:'lemma-ad', action:'success' }); if(!res.errno){ if(res.data[5]){ require.async(['wiki-lemma:widget/promotion/rightPreciseAd/rightPreciseAd'],function(rightPreciseAd){ rightPreciseAd(res.data[5]); nslog(10002201,location.href,{ adId:res.data[5][0].adId, adTitle:res.data[5][0].name, adPos:5 }); }); }elseif(res.data[1]){ //缅怀类词条屏蔽词条页v百科 require.async(['wiki-lemma:widget/promotion/vbaike/vbaike'],function(vbaike){ vbaike(res.data[1]); for(variinres.data[1]){ nslog(10002201,location.href,{ adId:res.data[1][i].adId, adTitle:res.data[1][i].name, adPos:1 }); } }); } //缅怀类词条屏蔽广告 if(res.data[9]){ require.async(['wiki-lemma:widget/promotion/rightBigAd/rightBigAd'],function(rightBigAd){ rightBigAd(res.data[9]); nslog(10002201,location.href,{ adId:res.data[9][0].adId, adTitle:res.data[9][0].name, adPos:9 }); }); }elseif(res.data[2]){ //词条页轮播 require.async(['wiki-lemma:widget/promotion/slide/slide'],function(slide){ slide(res.data[2]); for(variinres.data[2]){ nslog(10002201,location.href,{ adId:res.data[2][i].adId, adTitle:res.data[2][i].name, adPos:2 }); } }); } //词条页右上 if(res.data[3]){ require.async(['wiki-lemma:widget/promotion/topAd/topAd'],function(topAd){ topAd(res.data[3]); nslog(10002201,location.href,{ adId:res.data[3][0].adId, adTitle:res.data[3][0].name, adPos:3 }); }); } //词条页悬浮 if(res.data[4]){ require.async(['wiki-lemma:widget/promotion/rightAd/rightAd'],function(rightAd){ rightAd(res.data[4]); nslog(10002201,location.href,{ adId:res.data[4][0].adId, adTitle:res.data[4][0].name, adPos:4 }); }); } if(res.data[15]){ require.async(['wiki-lemma:widget/promotion/banner/banner'],function(banner){ banner(res.data[15]); nslog(10002201,location.href,{ adId:res.data[15][0].adId, adTitle:res.data[15][0].name, adPos:15 }); }); } if(res.data[16]){ require.async(['wiki-lemma:widget/promotion/declaration/declaration'],function(declaration){ declaration(res.data[16]); nslog(10002201,location.href,{ adId:res.data[16][0].adId, adTitle:res.data[16][0].name, adPos:16 }); }) } }else{ return; } setTimeout(function(){ varelemArr={}; res.data[1]&&res.data[1].length>0&&(elemArr['lemma-vbaike-ad']=$('.lemmaWgt-promotion-vbaike.promotion_viewporta:eq(0)img').get(0)); res.data[2]&&res.data[2].length>0&&(elemArr['lemma-slide-ad']=$('.lemmaWgt-promotion-slide.promotion_viewporta:eq(0)img').get(0)); res.data[3]&&res.data[3].length>0&&(elemArr['lemma-navbar-ad']={ node:$('.header[nslog-type="10002202"]').get(0), validations:{ 'noBackgroundImage':function(){ return$('.header[nslog-type="10002202"]').css('background-image').indexOf(res.data[3][0].picUrl)<0 } } }); res.data[4]&&res.data[4].length>0&&(elemArr['lemma-side-ad']={ node:$('.right-adimg').get(0), validations:{ 'noBackgroundImage':function(){ return$('.right-adimg').attr('src').indexOf(res.data[4][0].picUrl)<0 } } }); res.data[15]&&res.data[15].length>0&&(elemArr['lemma-configModule-banner']=$('.configModuleBanner').get(0)); res.data[16]&&res.data[16].length>0&&(elemArr['lemma-configModule-declaration']=$('.lemmaWgt-declaration').get(0)); testElem.log(elemArr,70000102); },1000); }, error:function(){ //log词条页广告被拦截情况(此处log请求失败) nslog(70000101,window.location.href,{ api:'lemma-ad', action:'error' }); } }); //设置分享内容 window.BKShare.setCommon({ bdText:"\u3010phpmailer_\u767e\u5ea6\u767e\u79d1\u3011PHPMailer\u662f\u4e00\u4e2a\u7528\u4e8e\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u7684PHP\u51fd\u6570\u5305\u3002\u76f4\u63a5\u7528PHP\u5c31\u53ef\u4ee5\u53d1\u9001\uff0c\u65e0\u9700\u642d\u5efa\u590d\u6742\u7684Email\u670d\u52a1\u3002.....\uff08\u5206\u4eab\u81ea@\u767e\u5ea6\u767e\u79d1\uff09", bdDesc:'', bdUrl:'http:\/\/baike.baidu.com\/item\/phpmailer\/3708847', bdPic:'', onBeforeClick:function(){ $('.bdshare_dialog_box').hide(); } }); //底部投诉带入当前页面url varmap=[1,2,6,5]; $('.wgt-footer-main.suggestion').find('a').each(function(i){ $(this).attr('href','http://help.baidu.com/newadd?word=phpmailer'+'&&submit_link='+encodeURIComponent(window.location.href)+'&prod_id=10&category='+map[i]); }); //为超出预设内容的表格添加table-responsive控制 $('.main-content').find('table').each(function(index){ var$that=$(this); if($that.width()>790){ $that.wrap(''); } }); }();!function(){require('wiki-common:widget/component/psLink/psLink'); }();varHunter=window.Hunter||{}; Hunter.userConfig=Hunter.userConfig||[];//DOMReady时,统计用户可操作时间。 alog('speed.set','drt',+newDate); voidfunction(a,b,c,d,e,f){functiong(b){a.attachEvent?a.attachEvent("onload",b,!1):a.addEventListener&&a.addEventListener("load",b)}functionh(a,c,d){d=d||15;vare=newDate;e.setTime((newDate).getTime()+1e3*d),b.cookie=a+"="+escape(c)+";path=/;expires="+e.toGMTString()}functioni(a){varc=b.cookie.match(newRegExp("(^|)"+a+"=([^;]*)(;|$)"));returnnull!=c?unescape(c[2]):null}functionj(){vara=i("PMS_JT");if(a){h("PMS_JT","",-1);try{a=a.match(/{["']s["']:(\d+),["']r["']:["']([\s\S]+)["']}/),a=a&&a[1]&&a[2]?{s:parseInt(a[1]),r:a[2]}:{}}catch(c){a={}}a.r&&b.referrer.replace(/#.*/,"")!=a.r||alog("speed.set","wt",a.s)}}if(a.alogObjectConfig){vark=a.alogObjectConfig.sample,l=a.alogObjectConfig.rand;d="https:"===a.location.protocol?"https://fex.bdstatic.com"+d:"http://fex.bdstatic.com"+d,k&&l&&l>k||(g(function(){alog("speed.set","lt",+newDate),e=b.createElement(c),e.async=!0,e.src=d+"?v="+~(newDate/864e5)+~(newDate/864e5),f=b.getElementsByTagName(c)[0],f.parentNode.insertBefore(e,f)}),j())}}(window,document,"script","/hunter/alog/dp.min.js");

牛铺软件园提供《phpmailer》2017 官方版下载,该软件为官方版,文件大小为28.4KB,推荐指数4颗星,作为代码编辑器中的顶尖厂商,完全可以放心下载哦!

∨ 展开

同类推荐

相关下载

猜你喜欢

相关文章

热门推荐

下载排行

网友评论 注册会员

我要跟帖


取消
暂无评论,快抢沙发