View Single Post
Old 03-12-2008, 10:58 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
here's a sourceforge project: SourceForge.net: PHPMailer

and a tutorial here: :: PHP Mailer ::

usage sample taken from their site:
PHP Code:
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host "smtp.example.com"// SMTP server
$mail->From "from@example.com";
$mail->AddAddress("myfriend@example.net");

$mail->Subject "First PHPMailer Message";
$mail->Body "Hi! \n\n This is my first e-mail sent through PHPMailer.";
$mail->WordWrap 50;

if(!
$mail->Send())
{
   echo 
'Message was not sent.';
   echo 
'Mailer error: ' $mail->ErrorInfo;
}
else
{
   echo 
'Message has been sent.';
}
?>
__________________
Mike
sde is offline   Reply With Quote