tehplague / swiftmailer-mailgun-bundle

Swiftmailer Mailgun transport as a Symfony bundle
104 stars 49 forks source link

Transport not registered exception #72

Open RageZBla opened 5 years ago

RageZBla commented 5 years ago

We tried as per documentation and symfony is exploding when trying to send email. It says that the "mailgun" transport is not a default transport.

To make it work we had to add the following service definition:

services:
  # Hijack the transport because of mailgun
  swiftmailer.mailer.default.transport:
    alias: mailgun.swift_transport.transport

Is that expected or something is missing from the documentation?

robjensen82 commented 5 years ago

This worked for me. Thanks for the tip