summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-08-11 14:53:14 -0300
committerRenato Botelho <renato@netgate.com>2016-08-11 14:53:38 -0300
commit79925b877713cc9c7b24a11a5af3b05de58dd171 (patch)
tree79c204570636352ad2c46097e35125373b0dfa93 /src/etc
parentbdcdd6e386bb797f84872076855bed3469a6f839 (diff)
downloadpfsense-79925b877713cc9c7b24a11a5af3b05de58dd171.zip
pfsense-79925b877713cc9c7b24a11a5af3b05de58dd171.tar.gz
Pass along send_smtp_message() return, otherwise message will not be shown when testing SMTP settings
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/notices.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/etc/inc/notices.inc b/src/etc/inc/notices.inc
index 1e8d06d..236cb03 100644
--- a/src/etc/inc/notices.inc
+++ b/src/etc/inc/notices.inc
@@ -334,8 +334,7 @@ function notify_via_smtp($message, $force = false) {
fwrite($fd, $message);
fclose($fd);
- send_smtp_message($message, "{$config['system']['hostname']}.{$config['system']['domain']} - Notification", $force);
- return;
+ return send_smtp_message($message, "{$config['system']['hostname']}.{$config['system']['domain']} - Notification", $force);
}
function send_smtp_message($message, $subject = "(no subject)", $force = false) {
OpenPOWER on IntegriCloud