diff --git a/README.md b/README.md new file mode 100644 index 0000000..3d48a7b --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +### Installation +```$xslt +composer require homicity/laravel-mandrill +``` + +Then publish the config file + +```$xslt +php artisan vendor:publish --provider="Homicity\MandrillMailable\Providers\MandrillMailableServiceProvider" --tag="config" +``` + +### Config +TODO + +### Usage + +```$xslt +Mail::mandrill() + ->to('john@example.com') + ->name('John Doe') + ->templateName('template-name') + ->fromEmail('no-reply@example.com') + ->fromName('Example Website') + ->subject('Hello Mandrill') + ->send(); +``` diff --git a/tests/Features/SendMandrillTemplateTest.php b/tests/Features/SendMandrillTemplateTest.php index aaf917b..2b04a03 100644 --- a/tests/Features/SendMandrillTemplateTest.php +++ b/tests/Features/SendMandrillTemplateTest.php @@ -14,12 +14,12 @@ public function it_sends_a_mandrill_template() MandrillMessage::shouldReceive('sendTemplate')->andReturn([['status' => 'sent']]); $response = Mail::mandrill() - ->to('test@test.com') - ->name('Testing') - ->templateName('test-template') - ->fromEmail('test2@test.com') - ->fromName('Testing From') - ->subject('Testing') + ->to('john@example.com') + ->name('John Doe') + ->templateName('template-name') + ->fromEmail('no-reply@example.com') + ->fromName('Example Website') + ->subject('Hello Mandrill') ->send(); $this->assertTrue($response[0]['status'] == 'sent');