用phpmailer发送HTML邮件,,<?php
include_once("class.phpmailer.php");
include_once("index.php");
$activation_code=activation_code();
$formmail="[email protected]";
$subject = "实验"; 
$send_body="<a href='www.google.com'>google</a>";
$smtp="smtp.126.com";
$username="[email protected]";
$password="**********";
$mail=new PHPMailer();
$mail->SMTPAuth = true; $mail->Host=$smtp;
$mail->IsSMTP();
$mail->SMTPAuth=true;
$mail->Username=$username;
$mail->Password=$password;
$mail->From="[email protected]";
$mail->FromName="Souba激活";
$mail->Sender="[email protected]";
$mail->Subject =$subject;
$mail->IsHTML(true);
$mail->Body ="<a href='www.google.com' target='_blank'>google</a>";

$mail->AddAddress($formmail);
if(!$mail->Send())
{
echo "发送失败";
}
else
{
echo "发送成功";
}
?>
可以发送成功的,,不过进邮箱打开邮件,,点击超链接无效,,、
求高手帮忙解决一下,,,谢谢