Skip to content

Commit 07b9335

Browse files
committed
notify option ssupport
1 parent 0272902 commit 07b9335

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web/inc/mail-wrapper.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@
22
<?php
33
error_reporting(NULL);
44
if (empty($argv[1])) {
5-
echo "Error: not enough arguments\n";
5+
echo "ERROR: not enough arguments\n";
6+
echo "USAGE: mail-wrapper.php -s SUBJECT EMAIL [NOTIFY]\n";
67
exit(3);
78
}
89

910
$options = getopt("s:f:");
1011

12+
if ((!empty($argv[4])) && ($argv[4] == 'no')) {
13+
exit;
14+
}
1115

1216
define('NO_AUTH_REQUIRED',true);
17+
1318
include("/usr/local/vesta/web/inc/main.php");
1419

1520
// Set system language

0 commit comments

Comments
 (0)