|
公司做个网站,租了一个很便宜的服务器,没有smtp,只能qmail
phpmailer里面有个方法IsQmail(),我的程序写
$mail = new PHPMailer();
if ($CI->config->item('email_server') == 'qmail') {
$mail->IsQmail(true);
}
$mail->CharSet = 'SHIFT-JIS';
$mail->Encoding = "base64";
$mail->From = $from;
$mail->FromName = $from_name;
$mail->Subject = $subject;
$mail->Body = $content;
$mail->IsHTML(true);
$mail->WordWrap = 50;
$rtn = $mail->Send();
if(!$rtn)
{
log_message('error', 'MAIL ERROR : '.$mail->ErrorInfo);
return $mail->ErrorInfo;
}
return '';
可是发不了邮件呀,我该怎么办呢??? |
|