bug 1003: Add debug output so we can trace where the mails got lost bug-1003
authorMichael Tänzer <neo@nhng.de>
Tue, 15 Oct 2013 21:33:01 +0000 (23:33 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 15 Oct 2013 21:33:01 +0000 (23:33 +0200)
Signed-off-by: Michael Tänzer <neo@nhng.de>
scripts/cron/permissionreview.php

index d1c67f1..ca95f18 100755 (executable)
@@ -160,6 +160,7 @@ CAcert Support
 EOF;
 
                        sendmail($admin['email'], "Permissions Review", $message, 'support@cacert.org');
+                       echo "Sent $flag_properties[name] mail to $admin[email]\n";
                }
        }
 }
@@ -199,6 +200,7 @@ foreach ($adminlist['admin=1'] as $support_engineer) {
                        "Permissions Review",
                        $message,
                        'support@cacert.org');
+       echo "Sent Support Engineer mail to $support_engineer[email]\n";
 }
 
 
@@ -244,4 +246,5 @@ CAcert Support
 EOF;
 
        sendmail($values['email'], "Permissions Review", $message, 'support@cacert.org');
+       echo "Sent $values[description] mail to $values[email]\n";
 }