From 92b9d7d44d563fc4c471b42a73e43ad22436a0fd Mon Sep 17 00:00:00 2001 From: Xabi Xab Date: Sat, 9 Jan 2016 18:12:26 +0100 Subject: [PATCH] Cron Sending Mails to www-data Cron sends mails to www-data every time that it finishes a scheduled task. I fix the problem adding $line .= "MAILTO=\"\"" . fs_filehandler::NewLine(); in line number 265. Sorry my bad english level. --- modules/cron/code/controller.ext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cron/code/controller.ext.php b/modules/cron/code/controller.ext.php index 39aab8eed..fb5f299e0 100644 --- a/modules/cron/code/controller.ext.php +++ b/modules/cron/code/controller.ext.php @@ -262,7 +262,7 @@ static function WriteCronFile() $line .= "# NEVER MANUALLY REMOVE OR EDIT ANY OF THE CRON ENTRIES FROM THIS FILE, " . fs_filehandler::NewLine(); $line .= "# -> USE SENTORA INSTEAD! (Menu -> Advanced -> Cron Manager) " . fs_filehandler::NewLine(); $line .= "#################################################################################" . fs_filehandler::NewLine(); - + $line .= "MAILTO=\"\"" . fs_filehandler::NewLine(); //Write command lines in crontab, if any if ($numrows->fetchColumn() <> 0) { $sql = $zdbh->prepare($sql);