PHP Classes

File: test/test.php

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

Contents

Class file image Download
<?php
  
include_once "../delayedmail.php";

  
$server = new DelayedMail\Server("delayedmail.ini");
  
$msg = new DelayedMail\Message();
  
$msg->setType("text/html");
  
$msg->from("taq <eustaquiorangel@gmail.com>")->
          
to("Eustaquio Rangel <taq@bluefish.com.br>")->
          
cc("Eustaquio Rangel <taq@eustaquiorangel.com>")->
     
subject("DelayedMail test!")->
        
text("<h1>Hi!</h1><p>This is just\na test!</p>")->
      
attach("taq.jpg");
  
$server->push($msg);

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