hi im trying to use class.phpmailer class to send emails but i dosnt work, i used that php code
<?php $id = $_GET['id']; $email = "blackgun2002@yahoo.com"; require("lib/class.phpmailer.php"); $mail = new PHPMailer(); $mail->Host = "localhost"; $mail->From = $id"@yahoo.com"; $mail->FromName = $id"@yahoo.com"; $mail->AddAddress($email); $mail->Subject = "READ"; $mail->Body = "hello my id is $id"; $mail->WordWrap = 50; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo ' Mail sent to <? echo $email ?> they will reply within 24 hours,Your tickt number sent to <? echo $id ?>
';
}
?>
please help me with the right code