用phpmailer发送html邮件
smtpauth = true;
$mail->host=$smtp;
$mail->issmtp();
$mail->smtpauth=true;
$mail->username=$username;
$mail->password=$password;
$mail->from=sou_ba@126.com;
$mail->fromname=souba激活;
$mail->sender=sou_ba@126.com;
$mail->subject =$subject;
$mail->ishtml(true);
$mail->body =google;
$mail->addaddress($formmail);
if(!$mail->send())
{
echo 发送失败;
}
else
{
echo 发送成功;
}
?>
摘自 潇湘博客
http://www.bkjia.com/phpjc/478479.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/478479.htmltecharticle用phpmailer发送html邮件 ?php include_once(class.phpmailer.php);; $formmail=381266902@qq.com; $subject = 实验; $smtp=smtp.126.com; $username=xxxxxxxx@126.com; $password=*****...