Steve Childs

Results 7 comments of Steve Childs

Can't believe this hasn't been implemented, this is actually a show stopper for us. Our CRM platform hosts multiple sites from the same setup, we need the ability to support...

Actually, there's a very simple solution - subclass the Transport class! Symfony allows you to specify any service as a transport in the config, doing this allows you to inject...

@fyher - If you take the approach I posted above, you can do what you want to do. You'd load the config in the constructor of the customMailgunTransport class.

- Its what we do, except we load the config from YML files which in turn are cached in Redis. It saves a trip to the DB on every page...

``` public function choiceDomaine($domain){ parent::__construct($this->event, $this->mailgun, $domain); } ``` Whilst it may work, I'd refactor this so you're not calling the parent's constructor method, perhaps move that functionality into a...

Actually, there's another way to do this without subclassing the Transport class. When the transport sends the message it checks the headers of the email to see if there is...

Having it raise an error could in theory introduce a huge backward compatibility break. Far better (imo) is a config open whereby you can enable that functionality if you want....