Index: branches/dev/data/lib/slib.php
===================================================================
--- branches/dev/data/lib/slib.php	(revision 14160)
+++ branches/dev/data/lib/slib.php	(revision 14161)
@@ -1675,9 +1675,7 @@
 		$arrRet = $objQuery->select("subject, body", "dtb_mailtemplate", $where, array($template_id));
 		$objPage->tpl_body = $arrRet[0]['body'];
-//		$objPage->tpl_footer = $arrRet[0]['footer'];
 		$tmp_subject = $arrRet[0]['subject'];
 	} else {
 		$objPage->tpl_body = $body;
-//		$objPage->tpl_footer = $footer;
 		$tmp_subject = $subject;
 	}
@@ -1726,4 +1724,5 @@
     $name = $objPage->arrCustomer['name01']." ".$objPage->arrCustomer['name02'];
     $objPage->tpl_body = ereg_replace( "(\{name\})", $name ,  $objPage->tpl_body );
+    $tmp_subject = ereg_replace( "(\{name\})", $name ,  $tmp_subject );
     
     if($arrRet[0]['send_type']==1){
