Symfony 1.3 ile Swift Mailer AntiFlood tapa veya Throttler tapa kullanma

1 Cevap php

Symfony 1.3 kullanarak Swift Mailer Eklentileri için sözdizimi nedir?

Onun değil:

$email = $this->getMailer()->compose();
$email->setSubject($subject);
$email->setFrom($from);
$email->setTo($to);
$email->setBody($body, 'text/html');
$email->addPart($plain, 'text/plain');
$email->registerPlugin(new Swift_Plugins_AntiFloodPlugin(100, 30));
$email->registerPlugin(new Swift_Plugins_ThrottlerPlugin(100, Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE));

1 Cevap

denedin mi:

$this->getMailer()->getRealtimeTransport()->registerPlugin($pluginInstance);

OR:

$this->getMailer()->registerPlugin($pluginInstance);