summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-27 10:58:33 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-08-27 10:58:33 +0000
commit1f08b4d3e99d7955cf62cdaac0123de79b1acdb2 (patch)
treeadd66a586aa27931f1c5bb4a36f8b6eaa743a960 /roundcubemail/program/steps
parente90425d8c5a3cd3c03cdd3a8252d78bc516cebf5 (diff)
- added options to use syslog instead of log file (#1484850)
- added Logging & Debugging section in Installer - fixed config from $_POST for next installer steps saving - fixed and re-enabled debug_level setting in installer git-svn-id: https://svn.roundcube.net/trunk@1683 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/sendmail.inc10
1 files changed, 2 insertions, 8 deletions
diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc
index 9888c5a97..25d95f949 100644
--- a/roundcubemail/program/steps/mail/sendmail.inc
+++ b/roundcubemail/program/steps/mail/sendmail.inc
@@ -420,19 +420,13 @@ else
{
if ($CONFIG['smtp_log'])
{
- $log_entry = sprintf(
+ write_log('sendmail', sprintf(
"[%s] User: %d on %s; Message for %s; %s\n",
date("d-M-Y H:i:s O", mktime()),
$_SESSION['user_id'],
$_SERVER['REMOTE_ADDR'],
$mailto,
- !empty($smtp_response) ? join('; ', $smtp_response) : '');
-
- if ($fp = @fopen($CONFIG['log_dir'].'/sendmail', 'a'))
- {
- fwrite($fp, $log_entry);
- fclose($fp);
- }
+ !empty($smtp_response) ? join('; ', $smtp_response) : ''));
}
rcmail_compose_cleanup();