PHPMailer Class

PHPMailer Version 5.1

Send email with php on windows server with multiple TOs, CCs, BCCs and REPLY-TOs

Include class.phpmailer.php file, sample code as below

< ?

require("class.phpmailer.php");

$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "mail.yourdomain.com";
$mail->SMTPAuth = true;
$mail->Username = "you@yourdomain.com";
$mail->Password = "EmailPassword";

$mail->From = "you@yourdomain.com";
$mail->FromName = "Your Name";
$mail->AddReplyTo("you@domain.com");
$mail->AddAddress("user@domain.com");
$mail->IsHTML(true);

$mail->Subject = "Test message sent using the PHPMailer component";
$mail->Body = "This is a test message.";

$mail->Send();

? >

 

Download at : http://www.websancharindia.com/client/dl.php?type=d&id=10

Was this answer helpful?

 Print this Article