2017 © Pedro Peláez
 

library psiiiphpmailer

image

mm-psiiirus/psiiiphpmailer

  • Wednesday, February 21, 2018
  • by MM-Psiiirus
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

PsiiiPhpMailer

Extended PHPMailer to implement a Symfony-Swiftmailer like spooling mechanic., (*1)

...
/**
 * load PostOffice Class
 */
$spoolDir = dirname(__FILE__) . '/spool';
$mailSpoolSender = new \Psiii\Mailer\MailFileSpool($spoolDir);
$transporterGmail = new \Psiii\Mailer\TransporterGmail('ACME@gmail.com','acme-my-pass');

$postOffice = new \Psiii\Mailer\PostOffice($mailSpoolSender, $transporterGmail);

/**
 * create Mail object
 */
$mail = $postOffice->createMail();

var_dump($psiiiMailer);

/**
 * gmail smtp
 */
#$mail->SMTPDebug = 3;                                              // Enable verbose debug output
$mail->setFrom('ACME@my-acme.com', 'Mailer');
$mail->addAddress('ACME@my-acme-customer.com', 'Joe User');          // Add a recipient
$mail->addReplyTo('ACME-reply@my-acme.com', 'Information');

$mail->Subject = 'Here is the subject';
$mail->Body = 'This is the HTML message body <b>in bold!</b>';
$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';

$postOffice->send();

/**
 * Cron to send file-spooled mails 
 */

 ... 

 $spoolDir = dirname(__FILE__).'/spool';

 $mailSpoolSender = new \Psiii\Mailer\MailFileSpool($spoolDir);
 $mailSpoolSender->send();

The Versions

21/02 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Toni Gurski

21/02 2018

0.1.5

0.1.5.0

  Sources   Download

The Requires

 

by Toni Gurski

21/02 2018

0.1.4

0.1.4.0

  Sources   Download

The Requires

 

by Toni Gurski

30/01 2017

0.1.3

0.1.3.0

  Sources   Download

The Requires

 

by Toni Gurski

25/05 2016

0.1.2

0.1.2.0

  Sources   Download

The Requires

 

by Toni Gurski

25/05 2016

0.1.1

0.1.1.0

  Sources   Download

The Requires

 

by Toni Gurski

25/05 2016

0.1

0.1.0.0

  Sources   Download

The Requires

 

by Toni Gurski