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 <br> my id is $id";
$mail->WordWrap = 50;
if(!$mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
echo '<br>Mail sent to <? echo $email ?> they will reply within 24 hours,<br>Your tickt number sent to <? echo $id ?>
</div>';
}
?>
please help me with the right code
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 <br> my id is $id";
$mail->WordWrap = 50;
if(!$mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
echo '<br>Mail sent to <? echo $email ?> they will reply within 24 hours,<br>Your tickt number sent to <? echo $id ?>
</div>';
}
?>
please help me with the right code
Comment