Hi there! I have a problem with my mailer system on sf 1.3. i do get this error:
Catchable fatal error: Argument 1 passed to Swift_Transport_SpoolTransport::registerPlugin() must be an instance of Swift_Events_EventListener, instance of sfMailerMessageLoggerPlugin given, called in /media/disk1/symfony/1.3/lib/mailer/sfMailer.class.php on line 140 and defined in /media/disk1/symfony/1.3/lib/vendor/swiftmailer/classes/Swift/Transport/SpoolTransport.php on line 111 I have this in my application's factories.yml all: mailer: class: sfMailer param: logging: %SF_LOGGING_ENABLED% charset: %SF_CHARSET% delivery_strategy: spool spool_class: Swift_PropelSpool spool_arguments: [ MailMessage, message ] transport: class: Swift_SmtpTransport param: host: localhost port: 25 encryption: ~ username: ~ password: ~ this is my piece of code $message = new Swift_Message(__('app register service')); $message->setTo($options['mailto']); $message->setFrom(CustomConfig::getRegisterFromEmailAddress()); $message->attach(new Swift_Message_Part($this->getPartial('mail/mailRegisterHtmlBody', $mailContext), 'text/html')); $message->attach(new Swift_Message_Part($this->getPartial('mail/mailRegisterTextBody', $mailContext), 'text/plain')); $this->getMailer()->send($message); And this is my my_project/lib/vendor/swift/Swift.php class version * @version 3.3.2 Any ideas what i have done wrong ? Thanks Alecs -- As programmers create bigger & better idiot proof programs, so the universe creates bigger & better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---