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 email地址要完整Password = "123456789"; // SMTP account password
SetFrom(,'52shici.com');
AddReplyTo("");
注册成为52shici.com的会员";(另外要设置好域名MX记录,略)二、通过163转发$mail = new PHPMailer();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)."?=";
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。