Skip to content

Bypassing the spool #5

@sonjadeissenboeck

Description

@sonjadeissenboeck

Has anyone ever added a bypass for the spooling?
So far I got this:
if($bypassSpool) {
$spool = $this->mailer->getTransport()->getSpool();
$transport = \Swift_MailTransport::newInstance();
$spool->flushQueue($transport);
}

but it isn't picking up the flushQueue() function from the swiftmailer-bundle. I don't know how to access that? :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions