Home

zhangyiqun

Thoughts, stories and ideas.

Research 2014年以前 スーパーマリオ 关于

09 May 2010
phpmailer使用记录

For those people having difficulty, this may help a bit. The new version of PHPMailer (5.1) includes an SMTPSecure variable – this is what I have working, hope it helps someone:

$mail = new PHPMailer();

$mail->Mailer = “smtp”;

$mail->Port = 465;

$mail->IsSMTP(); // telling the class to use SMTP

$mail->SMTPSecure = “ssl”;

$mail->Host = “smtp.gmail.com”; // SMTP server

$mail->SMTPAuth = true; // turn on SMTP authentication

$mail->SMTPKeepAlive = true;

另外,需要干掉

$mail->IsSendmail();  // tell the class to use Sendmail

Research 2014年以前 スーパーマリオ 关于