2017 © Pedro Peláez
 

project mail-dispatcher

Inserts the email to be sent to the database and after sends them. This project use Propel2 as ORM.

image

stesi/mail-dispatcher

Inserts the email to be sent to the database and after sends them. This project use Propel2 as ORM.

  • Wednesday, October 12, 2016
  • by moccia.f
  • Repository
  • 2 Watchers
  • 1 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MailDispatcher

Usage:



 //Create new template and set param to substitute in template
$template = (new Template ())
    ->setTemplateName ( "test" )
    ->addKeyVal ( (new KeyVal ())
        ->setKey ( "Name" )
        ->setVal ( "Mauro" ) )
    ->addKeyVal ( (new KeyVal ())
        ->setKey ( "Surname" )
        ->setVal ( "Cerone" ) )
    ->addKeyVal ( (new KeyVal ())
        ->setKey ( "NickName" )
        ->setVal ( "ceronem" ) );
//Create contact, FROM and A
$a = (new Contact ())->setAddress("cerone.m@stesi.eu");
$from = (new Contact())->setAddress("mauro.cerone@gmail.com");
//Add contact and template to Email object
$email = (new Email())
    ->setTemplate($template)
    ->setFrom($from)
    ->addA($a)
    ->setSubject("Test Email");
//Add email to the send queue
STeSI\MailDispatcher\Mailer::addMailToSend($email);
//Send all mail in send queue
STeSI\MailDispatcher\Mailer::startSendOperation();

The Versions

12/10 2016

dev-master

9999999-dev

Inserts the email to be sent to the database and after sends them. This project use Propel2 as ORM.

  Sources   Download

MIT

The Requires

 

by Mauro Cerone

mail dispatcher propel stesi