function
sendMail(
$to
,
$theme
,
$content
){
global
$mailUrl
,
$mailPwd
,
$mailUname
;
$mail
=
new
PHPMailer();
$mail
->SMTPDebug = 0;
$mail
->isSMTP();
$mail
->SMTPAuth=true;
$mail
->Host =
'smtp.exmail.qq.com'
;
$mail
->SMTPSecure =
'ssl'
;
$mail
->Port = 465;
$mail
->Hostname =
'localhost'
;
$mail
->CharSet =
'UTF-8'
;
$mail
->FromName =
$mailUname
;
$mail
->Username =
$mailUrl
;
$mail
->Password =
$mailPwd
;
$mail
->From =
$mailUrl
;
$mail
->isHTML(true);
$mail
->addAddress(
$to
,
' '
);
$mail
->Subject =
$theme
;
$mail
->Body =
$content
;
$status
=
$mail
->send();
if
(
$status
) {
return
true;
}
else
{
return
false;
}
}