Skip to content

Conversation

@damienalexandre
Copy link
Contributor

You can now completely disable SwiftMailer (which is initialized on each request by default) by using the new sfNoMailer class in your factories.yml:

mailer:
  class: sfNoMailer

This code was sleeping on my computer - but it has been tested on some major customer websites. When dealing with emails via a service provider, RabbitMQ, or no email at all... Symfony is still creating instance of SwiftMailer. This is nuts, here is the fix for that.

GromNaN added a commit that referenced this pull request Aug 19, 2013
Allow to disable SwiftMailer for real by using sfNoMailer
@GromNaN GromNaN merged commit 088b946 into FriendsOfSymfony1:master Aug 19, 2013
@GromNaN
Copy link
Collaborator

GromNaN commented Aug 19, 2013

Thanks. Excellent PR 🌹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants