Skip to content

Commit

Permalink
README and package name
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsundberg committed Aug 21, 2014
1 parent c04ce1d commit f9e63e7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Send emails in Laravel with Postmark
====================================
[Postmarkapp](http://postmarkapp.com) is an excellent ESP (Email Service Provider). This package makes it possible to send your emails with Postmark without modifing your code.

Add this to your `composer.json`

"snowfire/mail": "dev-master"

Open app.php and **remove** this line:

Illuminate\Mail\MailServiceProvider

Add

Snowfire\Mail\MailServiceProvider

In your config file `mail.php` change your driver to postmark.

'driver' => 'postmark'

In your config file `services.php` add your postmark api key.

'postmark' => [
'api_key' => ''
],


Run a composer update and you are ready to go!
10 changes: 10 additions & 0 deletions src/Snowfire/Mail/MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

class MailServiceProvider extends \Illuminate\Mail\MailServiceProvider {

/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
{
$this->package('snowfire/mail');
}

/**
* Register the Swift Transport instance.
*
Expand Down

0 comments on commit f9e63e7

Please sign in to comment.