Development

#8757 (Swift_Plugins_DecoratorPlugin, spool delivery strategy and sendNextImmediately)

You must first sign up to be able to contribute.

Ticket #8757 (new defect)

Opened 3 years ago

Swift_Plugins_DecoratorPlugin, spool delivery strategy and sendNextImmediately

Reported by: mdco81 Assigned to: fabien
Priority: minor Milestone:
Component: mailer Version: 1.4.5
Keywords: Cc:
Qualification: Unreviewed

Description

Hi,

I have set in factories.yml:

delivery_strategy: spool

in action:

$replacements[$email]['{receiver}'] = $name;
$this->getMailer()->registerPlugin(new Swift_Plugins_DecoratorPlugin($replacements));

$this->getMailer()->sendNextImmediately()->send($message);

in this configuration Decorator Plugin not work

if I set in action:

$replacements[$email]['{receiver}'] = $name;
$this->getMailer()->registerPlugin(new Swift_Plugins_DecoratorPlugin($replacements));

$this->getMailer()->send($message);

Decorator Plugin works good, but I must change delivery_strategy to realtime