svn: /web/doc-editor/trunk/scripts/cron/ check_build.php
[email protected] (Yannick Torres)
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
yannick Fri, 13 Nov 2009 22:38:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290716
Log:
Use email's method from AccountManager instide of standart php's mail function
Changed paths:
U web/doc-editor/trunk/scripts/cron/check_build.php
Modified: web/doc-editor/trunk/scripts/cron/check_build.php
===================================================================
--- web/doc-editor/trunk/scripts/cron/check_build.php 2009-11-13 22:29:27 UTC (rev 290715)
+++ web/doc-editor/trunk/scripts/cron/check_build.php 2009-11-13 22:38:16 UTC (rev 290716)
@@ -8,9 +8,12 @@
****/
require_once dirname(__FILE__) . '/../../php/conf.inc.php';
-require_once dirname(__FILE__) . '/../../php/RepositoryManager.php';
+require_once dirname(__FILE__) . '/../../php/AccountManager.php';
require_once dirname(__FILE__) . '/../../php/LogManager.php';
+require_once dirname(__FILE__) . '/../../php/RepositoryManager.php';
+$ac = AccountManager::getInstance();
+
// For all language, we check the build
foreach (RepositoryManager::getInstance()->availableLang as $lang) {
@@ -43,11 +46,7 @@
$subject = "[DOC-".strtoupper($lang)."] - Your documentation is broken";
- $headers = 'From: [email protected]' . "\r\n" .
- 'X-Mailer: PhpDocumentation Online Editor' . "\r\n" .
- 'Content-Type: text/plain; charset="utf-8"'."\n";
-
- mail($to, $subject, $msg, $headers);
+ $ac->email($to, $subject, $msg);
}
LogManager::getInstance()->saveBuildLogStatus($lang, $status);