PHP Classes

File: testMail.php

Recommend this page to a friend!
  Classes of Chris Thorne  >  Template Emailer  >  testMail.php  >  Download  
File: testMail.php
Role: Example script
Content type: text/plain
Description: Code wanting to send the email
Class: Template Emailer
Compose and send message using templates
Author: By
Last change:
Date: 13 years ago
Size: 746 bytes


Class file image Download

$templateData[]=array("master_placeholder", "master");
$templateData[]=array("blaster_placeholder", "blaster");
$template = "exampletemplate.htm";

$mail = new TemplateMail();
$mail->FromName = "Test Name";
$mail->From = "";
$mail->Subject = "This is merely a test";
$mail->AddAddress("","Test Name");
$mail->AddAddress("","Test Name2");
$mail->AddCC("","Test Name");
$mail->AddBCC("","Test Name");


//catch exception
catch(Exception $e)
'Message: ' .$e->getMessage();

For more information send a message to info at phpclasses dot org.