Location: PHPKode > scripts > CMail Composite > cmail-composite/email.test.php
<?php

// I know that there are many email classes, but my is gooood :)))

require_once("mail.php");

try
{
	$Mail = new CMail;
	
	$Mail->from     = "hide@address.com";
	$Mail->fromName = "Foo Bar";
	$Mail->to       = Array("hide@address.com", "hide@address.com");
	$Mail->subject  = "Subject";
	$Mail->message  = "<HTML><BODY>This is test email</BODY></HTML>";
	$Mail->charset  = "iso-8859-2";
	$Mail->mime     = "text/html";
	
	$Mail->AddAttachment("mail.php", "mail.class.txt");
	$Mail->Send();
}
catch(EmailException $e)
{
	echo $e->getMessage();
}

?>
Return current item: CMail Composite