Index: branches/dev/html/admin/basis/mail.php
===================================================================
--- branches/dev/html/admin/basis/mail.php	(revision 13719)
+++ branches/dev/html/admin/basis/mail.php	(revision 13720)
@@ -79,7 +79,7 @@
 	if ( $result ){
 		$sql_where = "template_id = ". addslashes($_POST['template_id']);
-		$conn->query("UPDATE dtb_mailtemplate SET template_id = ?, template_name = ?,subject = ?,header = ?, footer = ?,creator_id = ?, update_date = now() WHERE ".$sql_where, $data);
+		$conn->query("UPDATE dtb_mailtemplate SET send_type = ?,template_id = ?, template_name = ?,subject = ?,header = ?, footer = ?,creator_id = ?, update_date = now() WHERE ".$sql_where, $data);
 	}else{
-		$conn->query("INSERT INTO dtb_mailtemplate (template_id,template_name,subject,header,footer,creator_id,update_date,create_date) values ( ?,?,?,?,?,?,now(),now() )", $data);
+		$conn->query("INSERT INTO dtb_mailtemplate (send_type,template_id,template_name,subject,header,footer,creator_id,update_date,create_date) values ( ?,?,?,?,?,?,?,now(),now() )", $data);
 	}
 
