Debug emails in Symfony / eZ Platform / Publish with a file spool
Debugging emails can be be a burden. Continuously sending and receiving emails to your account... waiting for them to receive and so on.
eZ Publish 4.x had support for pushing out outgoing emails to files instead of smtp or sendmail. The Swiftmailer configuration in Symfony2 sites enable a similar way of debugging emails. Simply point your emails to a file spool:
# app/config/config.yml swiftmailer: # ... spool: type: file path: /path/to/spool
More details over at the Symfony Cookbook: How to Spool Emails