esthera
12-19-2008, 09:17 AM
<?
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$email = "ec@adddd.com";
$to = $email;
$subject = "test";
$body = "Pleatest audio";
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "mail.t.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "mail@ti.com"; // SMTP username
$mail->Password = "mail12"; // SMTP password
$mail->From = "info@t.com";
$mail->FromName = "Ti";
$mail->AddAddress($email);
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = $subject;
$mail->Body = $body;
echo "here";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "here2";
echo "message setn";
?>
this is not working
i'm not getting a mailerror -- the last echo itechos is here (but not the here2) and no email gets sent
Please advise.
error_reporting(E_ERROR | E_WARNING | E_PARSE);
$email = "ec@adddd.com";
$to = $email;
$subject = "test";
$body = "Pleatest audio";
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "mail.t.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "mail@ti.com"; // SMTP username
$mail->Password = "mail12"; // SMTP password
$mail->From = "info@t.com";
$mail->FromName = "Ti";
$mail->AddAddress($email);
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = $subject;
$mail->Body = $body;
echo "here";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "here2";
echo "message setn";
?>
this is not working
i'm not getting a mailerror -- the last echo itechos is here (but not the here2) and no email gets sent
Please advise.