When i try send a email i get the next error:

Catchable fatal error: Argument 1 passed to
Swift_Transport_AbstractSmtpTransport::registerPlugin() must be an
instance of Swift_Events_EventListener, instance of
sfMailerMessageLoggerPlugin given, called in /SGF_All/SGF/lib/
symfony13/lib/mailer/sfMailer.class.php on line 140 and defined in /
SGF_All/SGF/lib/symfony13/lib/vendor/swiftmailer/classes/Swift/
Transport/AbstractSmtpTransport.php on line 247

i searched in google but I'm don't know what is bad.

I send the email:

$message = $this->getMailer()->compose();
$message->setSubject('Asunto');
$message->setTo($email);
$message->setFrom('[email protected]');
$message->setBody($mailBody);

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

And in my factories.yml file I have:

mailer:
   class: sfMailer
   param:
    logging:  %SF_LOGGING_ENABLED%
    charset:  %SF_CHARSET%
    delivery_strategy:  realtime
    transport:
      class: Swift_SmtpTransport
      param:
         host:       10.8.5.5
         port:       25
         encryption: ~
         username:   [email protected]
         password:   pass


Please I need your help

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to