php电子邮件群发源码最近很多人都在找,下面就让一米软件来给大家分享一下。
// 请求 PHPmailer类 文件
require_once("class.phpmailer.php");
//发送Email函数
function smtp_mail ( $sendto_email, $subject, $body, $extra_hdrs, $user_name) {
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "smtp.163.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "jessiejl"; // SMTP username 注意:普通邮件认证不需要加 @域名
$mail->Password = "1983106"; // SMTP password
$mail->From = ""; // 发件人邮箱
$mail->FromName = "WWW.yimisoft.COM"; // 发件人 ,比如 一米软件
$mail->CharSet = "