svn: /web/doc-editor/trunk/scripts/cron/ check_build.php
| From: | Yannick Torres | Date: | Fri, 13 Nov 2009 22:38:16 +0000 |
| Subject: | svn: /web/doc-editor/trunk/scripts/cron/ check_build.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-1191@lists.php.net to get a copy of this message | ||
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: www@php.net' . "\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);