From 79925b877713cc9c7b24a11a5af3b05de58dd171 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 11 Aug 2016 14:53:14 -0300 Subject: Pass along send_smtp_message() return, otherwise message will not be shown when testing SMTP settings --- src/etc/inc/notices.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/etc') 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) { -- cgit v1.1