$mail->From = "[email protected]";
//The name that you'll see as Sender
$mail->FromName = "Yourdomain Webmaster";
$mail->AddAddress("[email protected]");
$mail->Subject = "Test sending email";
$mail->Body = "<span style='color:#0000FF;'>
Dear Customer
<br /><br />
This is a sample email sent from PHP SMTP Authentication
<br /><br />
Sathai Technical Support
</span>";
if(!$mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
echo 'Message has been sent.';
}
?>