Knowledgebase
PHPMailer Class
Posted by Premium Reseller on 28 September 2012 02:45 AM
|
||||
PHPMailer Version 5 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(); ? > Details on http://phpmailer.worxware.com/index.php?pg=phpmailer | ||||
|