Forest header image

Symfony Finland
Random things on PHP, Symfony and web development

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
    # ...
        type: file
        path: /path/to/spool

More details over at the Symfony Cookbook: How to Spool Emails

Written by Jani Tarvainen on Thursday November 12, 2015
Permalink - Tags: email, swiftmail, debug

« Fix: The requested package... could not be found in any version (eZ Publish) - eZ Platform data migrations with Doctrine »