Amr87 1 Junior Poster in Training

Hello Everyonr , I`m Junior PHP developer , and I have problems using phpmailer v .9
I`m using Windows 7 OS and I don`t know if I have SMTP client or not anyway, I used the following code

<?php
require ("includes/phpmailer/phpmailer.inc.php");
require ("includes/phpmailer/smtp.inc.php");


$to_name = "Site Admin";
$to = "chemist_amr87@yahoo.com";
$subject = "Hello From PHP Email at ".strftime("%T",time());
$message = "This Is Test Message";
$from = "bleedinglove87@ymail.com";
$from_name = "Amr Gamal Ibraheem";

$mail = new PHPMailer ();

$mail->IsSMTP();
$mail->Host = "mail.link.net";
$mail->Port = "25";
$mail->SMTPAuth = true;
$mail->username = "myuser";
$mail->password = "mypass";

$mail->FromName = $from_name;
$mail->From = $from;
$mail->AddAddress($to,$to_name);
$mail->Subject = $subject;
$mail->Body = $message;


$Result = $mail->Send();



echo ($Result) ? "SENT" : "ERROR";


/* // send as header
$header = "From :{$from} \r\n";
$header .= "Reply To :{$from} \r\n";
$header .= "MIME-Version:1.0 \r\n";
$header .= "Content-Type:text/plain; charset=iso-8859-1";
*/
?>

and I got Error say "Fatal error: Cannot redeclare class SMTP in C:\wamp\www\BEYOND THE BASICS\Sending Emails\includes\phpmailer\smtp.inc.php on line 26";


I didnt mess with anything in the class code , I dont know where is the problem
again i`m junior and this is my first time to deal with PHP emails


Thanks