/**
* Get mailer
*
* @return Swift_Mailer
*/
public function getMailer()
{
if ($this->mailer === null) {
$this->mailer = Swift_Mailer::newInstance($this->getTransport());
if (is_int($this->throttle)) {
$this->mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin($this->throttle, Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE));
}
}
return $this->mailer;
}