I downloaded the PHPMailer libarary, place phpmailer.php in my /var/lib/php, and I'm trying to execute the following code:
Code: Select all
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Test Mail...
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
//$mail->IsSMTP();
$mail->From = "admin@ablogic.net";
$mail->Host = "localhost";
$mail->AddAddress("ivj@comcast.net");
$mail->Subject = "Test SUbject";
$mail->Body = "Test Body";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>
Second test...
</body>
</html>So what kind of BS is this?
Here's the output of the code btw:
http://thailandhaven.com/phpMailerTest.php