2017 © Pedro Peláez
 

symfony-bundle postmark-bundle

A minor update of Miguel Perez's no-longer maintained code from https://github.com/miguel250/PostmarkBundle to allow for Symfony 3 compatibility. All credit/kudos/thanks for the work should obviously go to him

image

stephenfarrell/postmark-bundle

A minor update of Miguel Perez's no-longer maintained code from https://github.com/miguel250/PostmarkBundle to allow for Symfony 3 compatibility. All credit/kudos/thanks for the work should obviously go to him

  • Monday, September 12, 2016
  • by stephenfarrell
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,771 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 7 Versions
  • 24 % Grown

The README.md

PostmarkBundle

Symfony3 bundle for Postmark API Build Status, (*1)

This is a ridiculously minor update of Miguel Perez's no-longer maintained code from https://github.com/miguel250/PostmarkBundle to allow for Symfony 3 compatibility. All credit/kudos/thanks for the work should obviously go to him, (*2)

Setup

Using Composer Add PostmarkBundle in your composer.json:, (*3)

{
    "require": {
        "stephenfarrell/postmark-bundle": "*"
    }
}

``` bash $ php composer.phar update mlpz/postmark-bundle, (*4)


**Using Submodule** git submodule add https://github.com/miguel250/PostmarkBundle.git vendor/bundles/MZ/PostmarkBundle git submodule add https://github.com/kriswallsmith/Buzz.git vendor/buzz **Add the MZ namespace to autoloader** You can skip this when using Composer ``` php <?php // app/autoload.php $loader->registerNamespaces(array( // ... 'MZ' => __DIR__.'/../vendor/bundles', 'Buzz' => __DIR__.'/../vendor/buzz/lib', ));

Add PostmarkBundle to your application kernel, (*5)

``` php get('postmark.message'); $message->addTo('test@gmail.com', 'Test Test'); $message->setSubject('subject'); $message->setHTMLMessage('email body'); $message->addAttachment(new Symfony\Component\HttpFoundation\File\File(__FILE__)); $response = $message->send(); $message->addTo('test2@gmail.com', 'Test2 Test'); $message->setSubject('subject2'); $message->setHTMLMessage('email body'); $message->addAttachment(new Symfony\Component\HttpFoundation\File\File(__FILE__), 'usethisfilename.php', 'text/plain'); $response = $message->send(); ?>, (*6)


**Sending in batch** ``` php get('postmark.message'); $message->addTo('test@gmail.com', 'Test Test'); $message->setSubject('subject'); $message->setHTMLMessage('email body'); $message->queue(); // Queue the message instead of sending it directly $message->addTo('test2@gmail.com', 'Test2 Test'); $message->setSubject('subject2'); $message->setHTMLMessage('email body'); $responses = $message->send(); // Send both messages, note that you'll get an array of json responses instead of just the json response ?>

The Versions

12/09 2016

dev-develop

dev-develop https://github.com/stephenfarrell

A minor update of Miguel Perez's no-longer maintained code from https://github.com/miguel250/PostmarkBundle to allow for Symfony 3 compatibility. All credit/kudos/thanks for the work should obviously go to him

  Sources   Download

MIT

The Requires

 

by Miguel Perez
by Stephen Farrell

api mailer postmark

12/09 2016

dev-master

9999999-dev https://github.com/stephenfarrell

A minor update of Miguel Perez's no-longer maintained code from https://github.com/miguel250/PostmarkBundle to allow for Symfony 3 compatibility. All credit/kudos/thanks for the work should obviously go to him

  Sources   Download

MIT

The Requires

 

by Miguel Perez
by Stephen Farrell

api mailer postmark

12/09 2013

v0.0.6

0.0.6.0 http://www.mlpz.mp

postmark bundle

  Sources   Download

MIT

The Requires

 

by Miguel Perez

api mailer postmark

23/03 2013

v0.0.5

0.0.5.0 http://www.mlpz.mp

postmark bundle

  Sources   Download

MIT

The Requires

 

by Miguel Perez

api mailer postmark

15/03 2013

v0.0.4

0.0.4.0 http://www.mlpz.mp

postmark bundle

  Sources   Download

MIT

The Requires

 

by Miguel Perez

api mailer postmark

23/02 2013

v0.0.3

0.0.3.0 http://www.mlpz.mp

postmark bundle

  Sources   Download

MIT

The Requires

 

by Miguel Perez

api mailer postmark

31/01 2013

v0.0.2

0.0.2.0 http://www.mlpz.mp

postmark bundle

  Sources   Download

MIT

The Requires

 

by Miguel Perez

api mailer postmark