Coder Social home page Coder Social logo

laravel-postmark-driver's Introduction

Send emails in Laravel with Postmark

Postmarkapp is an excellent ESP (Email Service Provider). This package makes it possible to send your emails with Postmark without modifing your code.

Using Laravel 4? Visit the laravel-4 branch

Add this to your composer.json

"snowfire/mail": "2.*"

Open app.php and remove this line:

Illuminate\Mail\MailServiceProvider

Add

Snowfire\Mail\PostmarkServiceProvider

In your .env change your driver to 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!

laravel-postmark-driver's People

Contributors

emilsundberg avatar hkdobrev avatar jaketoolson avatar phroggyy avatar znarkus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

laravel-postmark-driver's Issues

dev-master / L4 branch still requires L5

There is something wrong with this L4 branch or docs as I have included "snowfire/mail": "dev-master" to composer.json and ran composer update, got a problem scenario. This package has been working for quite a while without composer update.

snowfire/mail dev-master requires illuminate/support 5.* -> satisfiable, by laravel/framework[5.1.x-dev], illuminate/support[5.0.x-dev, 5.1.x-dev, 5.2. x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.6, v5.1.8].

New Release

Hey, would it be possible to push a new release with this fix?

#12

Why is this needed?

I haven't really used Laravel and I'm curious why this kind of a wrapper is needed.

I understand Laravel uses a Dependency Injection Container and this is a service provider.

But if you are already using Swift Mailer - it already has a Dependency Injection Container. And the openbuildings/postmark package is already using it. Could you explain why this provider is needed on top of that?

Thanks!

Not compatible with Laravel >= 5.4.23 (\Illuminate\Foundation\Application::share removed)

Hi!

This driver does not work with Laravel versions >= 5.4.23. It is because method \Illuminate\Foundation\Application::share has been removed in favor of singleton method. See laravel/framework@1a1969b.

I hotfixed this by replacing by changing its usage on the line no. 36 of the file PostmarkServiceProvider.php, which was

$this->app['swift.mailer'] = $this->app->share(function ($app) use ($postmark) {

to

$this->app->singleton('swift.mailer', function ($app) use ($postmark) {

However, I can’t guarantee that this solution doesn’t break anything or that there aren’t any more incompatibilities.

Is this compatible with Laravel 5.0?

Is this compatible with L5? Currently getting this error when installing:

[ErrorException] Declaration of Snowfire\Mail\MailServiceProvider::registerSwiftTransport() should be compatible with Illuminate\Mail\MailServiceProvider::registerSwiftTransport()

Works fine on Laravel 4, currently migrating our app over to Laravel 5.

Faild sending email

Hi. I've got this error: "Postmark delivery failed: Invalid 'From' value." Where I should set option "From"?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.