diff options
author | Scott Ullrich <sullrich@su.local> | 2009-09-04 21:02:58 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@su.local> | 2009-09-04 21:02:58 -0400 |
commit | 06287a5fa37968fec193f4b803e31804bfa99df2 (patch) | |
tree | 573d9c6c21b8f1b3e1238427ad8aa8a7278fd932 /etc/inc/notices.inc | |
parent | f11527def8e5c6ed5434f5d7d02254f0737181c2 (diff) | |
download | pfsense-06287a5fa37968fec193f4b803e31804bfa99df2.zip pfsense-06287a5fa37968fec193f4b803e31804bfa99df2.tar.gz |
Do not echo out, use log_error()
Diffstat (limited to 'etc/inc/notices.inc')
-rw-r--r-- | etc/inc/notices.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/notices.inc b/etc/inc/notices.inc index 0f35449..a959853 100644 --- a/etc/inc/notices.inc +++ b/etc/inc/notices.inc @@ -243,9 +243,9 @@ function notify_via_smtp($message) { fclose($fd); if($smtp->SendMessage($from, array($to), $headers, $message)) - echo "Message sent to {$to} OK.\n"; + log_error("Message sent to {$to} OK.\n"); else - echo "Could not send the message to {$to}.\nError: {$smtp->error}\n"; + log_error("Could not send the message to {$to}.\nError: {$smtp->error}\n"); } |