加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网 (https://www.0791zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > PHP > 正文

phpMailer 配置 企业邮局 163

发布时间:2020-05-25 03:25:07 所属栏目:PHP 来源:互联网
导读:phpMailer的两种配置,记录一下,差别在一个要写完整邮件地址,一个只要填@前面的部分。一、自己的企业邮局发信$mail = new PHPMailer();//$body = file_get_contents(mail/.$date..html);//$body = eregi_replace([],,$body);$body =$html;$mail-IsSMTP(); /

IsSMTP(); // telling the class to use SMTP$mail->Host = "SMTPDebug = 0; // enables SMTP debug information (for testing)$mail->SMTPAuth = true; // enable SMTP authentication$mail->Host = "mail.52shici.com"; // sets the SMTP server$mail->Port = 25; // set the SMTP port for the GMAIL server$mail->Username = ""; // SMTP account username Password = "123456789"; // SMTP account password SetFrom(,'52shici.com'); AddReplyTo(""); IsSMTP(); // telling the class to use SMTP$mail->Host = "smtp.163.com"; // SMTP server$mail->SMTPDebug = 0; // enables SMTP debug information (for testing)$mail->SMTPAuth = true; // enable SMTP authentication$mail->Host = " Port = 25; // set the SMTP port for the GMAIL server$mail->Username = "Password = "123456789"; // SMTP account password$mail->SetFrom('lojinshui@163.com','52shici.com');$mail->AddReplyTo("lojinshui@163.com","52shici.com");$subject="感谢您注册成为52shici.com的会员"; $mail->Subject = "=?utf-8?B?".base64_encode($subject)."?=";

(编辑:安卓应用网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读