下面的代码,邮件发送不出去,求高手指点一下,哪里出了问题
<?php
include("class.phpmailer.php");
$mail = new phpmailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Host = "smtp.163.com";
$mail->Port = "25";
$mail->CharSet = "utf-8";$mail->Username = "[email protected]";
$mail->Password = "614520888";$mail->Subject = "Title of the mail".date('Y-m-d H:s:i');
$mail->Body = "Content of the mail";$mail->AddAddress("[email protected]");
var_dump($mail->Send());
?>
<?php
include("class.phpmailer.php");
$mail = new phpmailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Host = "smtp.163.com";
$mail->Port = "25";
$mail->CharSet = "utf-8";$mail->Username = "[email protected]";
$mail->Password = "614520888";$mail->Subject = "Title of the mail".date('Y-m-d H:s:i');
$mail->Body = "Content of the mail";$mail->AddAddress("[email protected]");
var_dump($mail->Send());
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货