2017 © Pedro Peláez
 

symfony-bundle postmark-bundle

postmark bundle

image

mlpz/postmark-bundle

postmark bundle

  • Thursday, September 12, 2013
  • by miguel250
  • Repository
  • 3 Watchers
  • 15 Stars
  • 24,583 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 12 Forks
  • 1 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

PostmarkBundle

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

Setup

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

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

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


**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, (*4)

``` 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(); ?>, (*5)


**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 2013

dev-master

9999999-dev http://www.mlpz.mp

postmark bundle

  Sources   Download

MIT

The Requires

 

by Miguel Perez

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