Commit 95185f79 by Phy

Changed uppercase first letter function calls to PHPMailer

parent fc7a62dc
......@@ -130,7 +130,7 @@
$mailer->From=$params['fromemail'];
$mailer->Sender=$params['fromemail'];
$mailer->FromName=$params['fromname'];
$mailer->AddAddress($params['toemail'], $params['toname']);
$mailer->addAddress($params['toemail'], $params['toname']);
if(!empty($params['replytoemail'])){
$mailer->addReplyTo($params['replytoemail'], $params['replytoname']);
}
......@@ -138,10 +138,10 @@
$mailer->Body=$params['body'];
if ($params['html'])
$mailer->IsHTML(true);
$mailer->isHTML(true);
if (qa_opt('smtp_active')) {
$mailer->IsSMTP();
$mailer->isSMTP();
$mailer->Host=qa_opt('smtp_address');
$mailer->Port=qa_opt('smtp_port');
......@@ -165,7 +165,7 @@
}
}
$send_status = $mailer->Send();
$send_status = $mailer->send();
if(!$send_status){
@error_log('PHP Question2Answer email send error: '.$mailer->ErrorInfo);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment