summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/mail.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-03-16 08:17:03 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-03-16 08:17:03 -0300
commitb78655a9cf9cdafb4998b30fb3894bd6c262ea96 (patch)
tree0223d57ad9b22bf0ff90264bdb00008fb0fbfede /usr/local/bin/mail.php
parentaa77c7baf2020c4de1a4ae5db8b587a5a7c14bb8 (diff)
parent7d61beba45e06f4be2fc5436f14e879ec7dd2675 (diff)
downloadpfsense-b78655a9cf9cdafb4998b30fb3894bd6c262ea96.zip
pfsense-b78655a9cf9cdafb4998b30fb3894bd6c262ea96.tar.gz
Merge pull request #1562 from phil-davis/usr-review1
Diffstat (limited to 'usr/local/bin/mail.php')
-rwxr-xr-xusr/local/bin/mail.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/bin/mail.php b/usr/local/bin/mail.php
index a09f5c6..1e62b81 100755
--- a/usr/local/bin/mail.php
+++ b/usr/local/bin/mail.php
@@ -7,18 +7,19 @@ $options = getopt("s::");
$message = "";
-if($options['s'] <> "") {
+if ($options['s'] <> "") {
$subject = $options['s'];
}
$in = file("php://stdin");
-foreach($in as $line){
+foreach ($in as $line){
$message .= "$line";
}
-if (!empty($subject))
+if (!empty($subject)) {
send_smtp_message($message, $subject);
-else
+} else {
send_smtp_message($message);
+}
?> \ No newline at end of file
OpenPOWER on IntegriCloud