[dev] [commit] r1044 - tools
automailer at dexonline.ro
automailer at dexonline.ro
Tue Dec 10 21:51:47 EET 2013
Author: alex.grigoras
Date: Tue Dec 10 21:51:47 2013
New Revision: 1044
Log:
created configuration section for WotD notification emails
Modified:
dex.conf.sample
tools/checkWotd.php
Modified: dex.conf.sample
==============================================================================
--- dex.conf.sample Sun Dec 8 03:52:39 2013 (r1043)
+++ dex.conf.sample Tue Dec 10 21:51:47 2013 (r1044)
@@ -175,3 +175,12 @@
; when set, outputs messages to the file specified by crawler_log
log2file = true
+
+; settings for WotD error email notifications
+[WotD]
+sender = sending-user at example.com
+reply-to =reply-to-user at example.com
+rcpt-info[] = info-user-1 at example.com
+rcpt-info[] = info-user-2 at example.com
+rcpt-error[] = error-user-1 at example.com
+rcpt-error[] = error-user-2 at example.com
\ No newline at end of file
Modified: tools/checkWotd.php
==============================================================================
--- tools/checkWotd.php Sun Dec 8 03:52:39 2013 (r1043)
+++ tools/checkWotd.php Tue Dec 10 21:51:47 2013 (r1044)
@@ -7,9 +7,12 @@
log_scriptLog("checkWotd: starting");
define('NUM_DAYS', 3);
-$MAIL_INFO = array('cata at francu.com');
-$MAIL_ERROR = array('raduborza at gmail.com', 'dorelian.bellu at gmail.com', 'carmennistor7 at gmail.com');
-$MAIL_HEADERS = array('From: cata at francu.com', 'Reply-To: cata at francu.com', 'Content-Type: text/plain; charset=UTF-8');
+
+$MAIL_INFO = Config::get('WotD.rcpt-info',array());
+$MAIL_ERROR = Config::get('WotD.rcpt-error',array());
+$sender = Config::get('WotD.sender', '');
+$replyto = Config::get('WotD.reply-to', '');
+$MAIL_HEADERS = array("From: $sender", "Reply-To: $replyto", 'Content-Type: text/plain; charset=UTF-8');
$sendEmail = false;
$quiet = false;
More information about the Dev
mailing list