摘要: 终于能够通过phpmailer使用gmail账号发送邮件了phpmailer(现在的版本是1.73)是一个很好用的工具,可以很方便的使用php语言发送邮件,支持smtp及验证,我们一直都用它。但是,由于gmail的smtp采用了ssl连接:Outgoing Mail (SMTP) Server – requires TLS: smtp.gmail.com (use authentication)Use Authentication: YesUse STARTTLS: Yes (some clients call this SSL)Port: 465 or 587使用phpmailer就无法正常 阅读全文
posted @ 2013-09-12 16:02 幻星宇 阅读(1366) 评论(0) 推荐(0) 编辑
摘要: 一,用phpmailer发送邮件查看复制打印?IsSMTP(); // 经smtp发送 $mail->Host = "smtp.163.com"; // SMTP 服务器 $mail->SMTPAuth = true; // 打开SMTP 认证 $mail->Username = "zhangyinghf@163.com"; // 用户名 $mail->Password = "**********"; // 密码 $mail->From = $frommail; // 发信人 $mail->From 阅读全文
posted @ 2013-09-12 15:52 幻星宇 阅读(1708) 评论(0) 推荐(0) 编辑