<?php
@include_once("./templateMail.class.php");
try
{
$templateData[]=array("master_placeholder", "master");
$templateData[]=array("blaster_placeholder", "blaster");
$template = "exampletemplate.htm";
$mail = new TemplateMail();
$mail->FromName = "Test Name";
$mail->From = "test@test.com";
$mail->Subject = "This is merely a test";
$mail->AddAddress("test@test.com","Test Name");
$mail->AddAddress("test2@test2.com","Test Name2");
$mail->AddAddress("test3@test3.com");
$mail->AddCC("test@test.com","Test Name");
$mail->AddBCC("test@test.com","Test Name");
$mail->sendTemplateEmail($templateData,$template);
}
//catch exception
catch(Exception $e)
{
echo 'Message: ' .$e->getMessage();
}
?>
|