include/chajian/mailerChajian.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
PHPMailer 读取插件类
*/
include_once(ROOT_PATH.'/include/PHPMailer/class.phpmailer.php');
include_once(ROOT_PATH.'/include/PHPMailer/class.smtp.php');
class mailerChajian extends Chajian{
private $mail;
private $mailbool;
public function initChajian(){
$this->mail = new PHPMailer();
$this->mail->IsSMTP();
$this->mail->SMTPAuth = true;
$this->mail->SMTPDebug = 0;
$this->mail->CharSet = 'UTF-8';
$this->mailbool = false;
}
public function setHost($host, $port=25, $secure=''){
$this->mail->Host = $host;
$this->mail->SMTPSecure = $secure;
$this->mail->Port = (int)$port;
}
public function setUser($email, $pass){
$this->mail->Username = $email;
$this->mail->Password = $pass;
$this->setFrom($email);
$this->addReplyTo($email);
}
//发件人邮箱地址
public function setFrom($from, $name=''){
$this->mail->SetFrom($from, $this->tojoin($name));
}
//设置回复
public function addReplyTo($address, $name=''){
$this->mail->AddReplyTo($address, $this->tojoin($name));
}
//添加抄送
public function addCC($address, $name=''){
$a1 = explode(',', $address);
$n1 = array();
if($name != '')$n1 = explode(',', $name);
for($i=0; $i<count($a1); $i++){
$na = '';
if(isset($n1[$i]))$na = $n1[$i];
$this->mail->AddCC($a1[$i], $this->tojoin($na));
}
}
//添加秘密送
public function addBCC($address, $name=''){
$a1 = explode(',', $address);
$n1 = array();
后面还有 55 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
