2017 © Pedro Peláez
 

library mandrill

OO wrapper above Mandrill API for sending e-mails

image

dotblue/mandrill

OO wrapper above Mandrill API for sending e-mails

  • Tuesday, April 10, 2018
  • by vojtechdobes
  • Repository
  • 5 Watchers
  • 16 Stars
  • 34,311 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 9 Versions
  • 3 % Grown

The README.md

DotBlue\Mandrill

This is an OO library wrapping around Mandrill API for sending messages. Enjoy!, (*1)

Requirements

PHP 5.4+ (we love short array syntax)., (*2)

curl, (*3)

Installation

The easiest way is to use Composer:, (*4)

$ composer require dotblue/mandrill@~1.2

Of course you can always clone this repository and commit it into your project manually., (*5)

Usage

$mandrill = new DotBlue\Mandrill\Mandrill($apiKey);
$mailer = new DotBlue\Mandrill\Mailer(new DotBlue\Mandrill\Exporters\MessageExporter(), $mandrill);

$message = new DotBlue\Mandrill\Message();
$message->setFrom('maesters@citadel.sif');
$message->subject = 'Winter is coming!';

$message->addTo('jeoffrey@baratheon.sif');
$message->addBcc('varys@spider.sif');
$message->addBcc('petyr@baelish.sif');

$message->html = '<html><body>Winter is coming!</body></html>';
$message->text = 'Winter is coming!';

$mailer->send($message);

Similary you can send a template by using class DotBlue\Mandrill\TemplateMessage in combination with DotBlue\Mandrill\Mailer::sendTemplate method., (*6)

You can find more examples in Documentation, (*7)

The Versions

10/04 2018

dev-test

dev-test

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mandrill nette e-mail

10/04 2018

dev-headers-support

dev-headers-support

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mandrill nette e-mail

11/12 2017

dev-master

9999999-dev

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mandrill nette e-mail

11/12 2017

v1.4.0

1.4.0.0

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

mandrill nette e-mail

16/02 2014

v1.3.0

1.3.0.0

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

mandrill nette e-mail

28/01 2014

v1.2.0

1.2.0.0

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

mandrill nette e-mail

27/01 2014

v1.1.0

1.1.0.0

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

mandrill nette e-mail

27/01 2014

v1.0.1

1.0.1.0

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

mandrill nette e-mail

27/01 2014

v1.0.0

1.0.0.0

OO wrapper above Mandrill API for sending e-mails

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

mandrill nette e-mail