Location: PHPKode > scripts > Template based Email sending > template-based-email-sending/example.php
<?

/**
*    in the array the first part [0] is the placeholder in the tempalte *    file explained in exampletemplate.htm that will be replaced with the *    second part of the array i.e. [1]
**/
$array_content[]=array("master_placeholder", "master");  
$array_content[]=array("blaster_placeholder", "blaster");

/**
*    usage  
*    mailsending::sendingemail_phpmailer($var_array,$template,$phpmailer,$FromName,$From,$to,$Subject);
*
**/
 
mailsending::sendingemail_phpmailer($array_content, "tpl/bookingtemplate.htm","Include/class.phpmailer.php","Admin",$admin_id,$user_email,"Thankyou for booking with us ! ORDER COMPLETED");
?>
Return current item: Template based Email sending