OpenBuildings / postmark

Postmark transport for Swift Mailer
https://github.com/OpenBuildings/postmark
BSD 3-Clause "New" or "Revised" License
16 stars 8 forks source link

Service does not exist in Symfony2 #31

Closed ethought closed 6 years ago

ethought commented 8 years ago

The service definition "swiftmailer.mailer.transport.swift_transport.postmark" does not exist.

Any ideas how to fix this?

hkdobrev commented 8 years ago

@ethought I think you should use the SwiftmailerBundle for Symfony.

ethought commented 8 years ago

I need Postmark transport though.

sprain commented 7 years ago

The SwiftmailerBundle actually expects your service name to be prefixed with swiftmailer.mailer.transport

So your service config should look like this:

services:
    swiftmailer.mailer.transport.postmark:
        class: Openbuildings\Postmark\Swift_PostmarkTransport
        arguments:
            - POSTMARK_API_KEY

And in config.yml:

swiftmailer:
    transport: postmark
hkdobrev commented 6 years ago

This issue is related to the Symfony integration only, not to the actual transport.