2017 © Pedro Peláez
 

library mandrill-mailer

SwiftMailer-like interface for sending emails using the Mandrill Messages API

image

chrisbarr/mandrill-mailer

SwiftMailer-like interface for sending emails using the Mandrill Messages API

  • Thursday, March 8, 2018
  • by chrisbarr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

MandrillMailer

Build Status, (*1)

SwiftMailer-like interface for sending emails using the Mandrill Messages API, (*2)

Basic Usage

Include it using composer:, (*3)

$ composer require chrisbarr/mandrill-mailer

Or add it to your composer.json file:, (*4)

{
  "require": {
    "chrisbarr/mandrill-mailer": "~0.1"
  }
}

Then use it like so:, (*5)

<?php
require('vendor/autoload.php');

$mailer = new MandrillMailer/Mailer(MANDRILL_API_KEY);

$message = new MandrillMailer/Message();
$message->setFrom('from@example.com', 'From User');
$message->setTo('to@example.com', 'To User');
$message->setSubject('This is my subject');
$message->setHtml('

Html goes here, (*6)

'); $mailer->send($message);

See Also

Read more about the Mandrill Messages API here: https://mandrillapp.com/api/docs/messages.JSON.html, (*7)

Use the official Mandrill PHP library here: https://mandrillapp.com/api/docs/index.php.html, (*8)

Reasons for developing

  • I wanted to use something with a nicer interface than this: https://mandrillapp.com/api/docs/messages.php.html#method-send
  • SwiftMailer is excellent at sending emails using SMTP, but I couldn't find an easy way to send messages using an API
  • I wanted to use Travis CI and be listed on Packagist :)

The Versions

08/03 2018

dev-master

9999999-dev https://github.com/chrisbarr/MandrillMailer

SwiftMailer-like interface for sending emails using the Mandrill Messages API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Barr

mailer mandrill

07/06 2015

v0.1.1

0.1.1.0 https://github.com/chrisbarr/MandrillMailer

SwiftMailer-like interface for sending emails using the Mandrill Messages API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Barr

mailer mandrill

23/10 2014

v0.1

0.1.0.0 https://github.com/chrisbarr/MandrillMailer

SwiftMailer-like interface for sending emails using the Mandrill Messages API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Chris Barr

mailer mandrill