Sends a weekly digest to subscribed users
Inheritance: extends Phalcon\Di\Injectable
コード例 #1
0
ファイル: send-digest.php プロジェクト: kjmtrue/phalcon-tip
 public function run()
 {
     $digest = new Digest();
     $digest->send();
 }
コード例 #2
0
ファイル: send-digest.php プロジェクト: huoybb/forum
<?php

/*
 +------------------------------------------------------------------------+
 | Phosphorum                                                             |
 +------------------------------------------------------------------------+
 | Copyright (c) 2013-2016 Phalcon Team and contributors                  |
 +------------------------------------------------------------------------+
 | This source file is subject to the New BSD License that is bundled     |
 | with this package in the file docs/LICENSE.txt.                        |
 |                                                                        |
 | If you did not receive a copy of the license and are unable to         |
 | obtain it through the world-wide-web, please send an email             |
 | to license@phalconphp.com so we can send you a copy immediately.       |
 +------------------------------------------------------------------------+
*/
/**
 * This script sends a weekly digest to users
 */
require 'cli-bootstrap.php';
use Phosphorum\Mail\Digest;
try {
    $digest = new Digest();
    $digest->send();
} catch (Exception $e) {
    echo $e->getMessage(), PHP_EOL;
    echo $e->getTraceAsString();
}