--- /var/www/html/edubridge/Patch/commentmail.module	2008-11-27 14:05:22.000000000 +0530
+++ /var/www/html/edubridge/Patch/commentmailnew.module	2011-02-03 15:15:49.000000000 +0530
@@ -153,7 +153,13 @@ function commentmail_mail($key, &$messag
     $body = variable_get('commentmail_mail_approve', t(COMMENTMAIL_DEFAULT_APPROVE));
   }
   else  {
-    $body = variable_get('commentmail_mail_notify', t(COMMENTMAIL_DEFAULT_NOTIFY));
+    //For case All
+    if($params['comment']->status == COMMENT_PUBLISHED){
+      $body = variable_get('commentmail_mail_notify', t(COMMENTMAIL_DEFAULT_NOTIFY));
+    } else {
+      //Send approval mail if comment not published
+      $body = variable_get('commentmail_mail_approve', t(COMMENTMAIL_DEFAULT_APPROVE));
+    }
   }
 
   // Check if the user is logged in.
