Oh, I see. Having looked further at the source forge site. I now see that I must download their software, then copy the classes to the web site. Now that I've done that, the class is being loaded. I still can't get it to send a message yet.
I modified the code I found in the readme file from sourceforge.
<?
require("../library/class.phpmailer.php");
require("../library/class.smtp.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "localhost"; // SMTP servers
// $mail->Host = "mail.mydomain.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "xxxx"; // SMTP username
$mail->Password = "yyyy"; // SMTP password
$mail->From = "
[email protected]";
$mail->FromName = "Tester";
$mail->AddAddress("
[email protected]","Shannon Vance");
$mail->AddAddress("
[email protected]","Shannon Vance");
$mail->AddReplyTo("
[email protected]","Information");
$mail->WordWrap = 50; // set word wrap
// $mail->AddAttachment("/var/tmp/file.tar.gz"); // attachment
// $mail->AddAttachment("/tmp/image.jpg", "new.jpg");
$mail->IsHTML(true); // send as HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the <b>HTML body</b>";
$mail->AltBody = "This is the text-only body";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>