Got the mailer first as above, same error occurs. Is there something else which also needs to be done?
$mailer = $this->get( 'mailer' ); $message = \Swift_Message::newInstance()->setSubject( 'Contact Email' ) ->setFrom( 's...@example.com' ) ->setTo( 'recipi...@example.com' ) ->setBody( 'Hi There' ); $mailer->send( $message ); *Fatal error*: Call to a member function clearAll() on a non-object in *C:\Program Files (x86)\Zend\Apache2\htdocs\Symfony\vendor\swiftmailer\lib\classes\Swift\Mime\SimpleMimeEntity.php * on line *822* -- 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 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