PHP Classes

File: runner.php

Recommend this page to a friend!
  Classes of Eustaquio Rangel de Oliveira Jr.   PHP Delayed Email class   runner.php   Download  
File: runner.php
Role: Example script
Content type: text/plain
Description: Class source
Class: PHP Delayed Email class
Queue email messages in files to send them later
Author: By
Last change: Update of runner.php
Date: 2 months ago
Size: 624 bytes
 

Contents

Class file image Download
<?php
/**
 * Fire all the emails on the queue
 *
 * PHP version 5.3
 *
 * @category Main
 * @package DelayedMail
 * @author Eustáquio Rangel <eustaquiorangel@gmail.com>
 * @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2
 * @link http://github.com/taq/delayedmail
 */
if (file_exists("vendor")) {
    echo
"- loading from composer\n";
    include_once
"vendor/autoload.php";
} else {
   
$dir = dirname(__FILE__);
    echo
"- loading classes from $dir\n";
    include_once
"$dir/delayedmail.php";
}

$options = getopt("q");

$sender = new DelayedMail\Sender(5, "delayedmail.ini");
$sender->run($options);
?>