Index: /branches/beta/html/admin/mail/index.php
===================================================================
--- /branches/beta/html/admin/mail/index.php	(revision 13241)
+++ /branches/beta/html/admin/mail/index.php	(revision 13398)
@@ -383,6 +383,8 @@
 	$dtb_send_history = array();
 	
-	$dtb_send_history["send_id"] = $objQuery->nextval('dtb_send_history', 'send_id');
-	$dtb_send_history["mail_method"] = $arrData['mail_method'];
+	if(DB_TYPE == "pgsql"){
+        $dtb_send_history["send_id"] = $objQuery->nextval('dtb_send_history', 'send_id');
+    }
+    $dtb_send_history["mail_method"] = $arrData['mail_method'];
 	$dtb_send_history["subject"] = $arrData['subject'];
 	$dtb_send_history["body"] = $arrData['body'];
