diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-03-16 08:17:03 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-03-16 08:17:03 -0300 |
commit | b78655a9cf9cdafb4998b30fb3894bd6c262ea96 (patch) | |
tree | 0223d57ad9b22bf0ff90264bdb00008fb0fbfede /usr/local/bin/mail.php | |
parent | aa77c7baf2020c4de1a4ae5db8b587a5a7c14bb8 (diff) | |
parent | 7d61beba45e06f4be2fc5436f14e879ec7dd2675 (diff) | |
download | pfsense-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-x | usr/local/bin/mail.php | 9 |
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 |