2017 © Pedro Peláez
 

library mandrill

Mandrill transactional emails via Laravel 4

image

cristiancy96/mandrill

Mandrill transactional emails via Laravel 4

  • Thursday, December 12, 2013
  • by cristiancy96
  • Repository
  • 1 Watchers
  • 2 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Mandrill Request

Send Mandrill transactional emails from the Laravel 4 framework. This package is a updating of package doxxon and Laravel 4 wrapper around MichMich's Laravel Mandrill Bundle., (*1)

Installation

  1. Edit your project's composer.json file and add a requirement for doxxon/laravel-mandrill-request., (*2)

    "require": {
        "laravel/framework": "4.1.*",
        "doxxon/laravel-mandrill-request": "dev-master"
    }
  2. Update composer from the command line:, (*3)

    composer update
  3. Open app/config/app.php and add the following line to the providers array:, (*4)

    'Doxxon\LaravelMandrillRequest\LaravelMandrillRequestServiceProvider',
  4. Add a facade alias to enable shorthand usage. Open app/config/app.php and add the following line to the aliases array:, (*5)

    'Mandrill' => 'Doxxon\LaravelMandrillRequest\Facades\MandrillRequest',
  5. Publish the config files. This will allow you to set your Mandrill API key:, (*6)

    php artisan config:publish doxxon/laravel-mandrill-request
  6. Set your Mandrill API key by editing config/packages/doxxon/laravel-mandrill-request/config.php:, (*7)

return array(

    'api_key' => 'your api key here',

);

Get your API keys from the Mandrill Dashboard, (*8)

Usage

$payload = array(
    'message' => array(
        'subject' => 'Transactional email via Mandrill',
        'html' => 'It works!',
        'from_email' => 'fromemail@example.com',
        'to' => array(array('email'=>'toemail@example.com'))
    )
);

$response = Mandrill::request('messages/send', $payload);

See the Mandril API Docs for more information, (*9)

The Versions

12/12 2013

dev-master

9999999-dev https://github.com/cristiancy96/mandrill

Mandrill transactional emails via Laravel 4

  Sources   Download

MIT

The Requires

 

by Cristian Cruz Yate

laravel email mandrill