transport = $transport; } /** * Create a new class instance of one of the message services. * * For example 'mimepart' would create a 'message.mimepart' instance * * @param string $service * * @return object */ public function createMessage($service = 'message') { return Swift_DependencyContainer::getInstance() ->lookup('message.'.$service); } /** * Send the given Message like it would be sent in a mail client. * * All recipients (with the exception of Bcc) will be able to see the other * recipients this message was sent to. * * Recipient/sender data will be retrieved from the Message object. * * The return value is the number of recipients who were accepted for * delivery. * * @param array $failedRecipients An array of failures by-reference * * @return int The number of successful recipients. Can be 0 which indicates failure */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { $failedRecipients = (array) $failedRecipients; // FIXME: to be removed in 7.0 (as transport must now start itself on send) if (!$this->transport->isStarted()) { $this->transport->start(); } $sent = 0; try { $sent = $this->transport->send($message, $failedRecipients); } catch (Swift_RfcComplianceException $e) { foreach ($message->getTo() as $address => $name) { $failedRecipients[] = $address; } } return $sent; } /** * Register a plugin using a known unique key (e.g. myPlugin). */ public function registerPlugin(Swift_Events_EventListener $plugin) { $this->transport->registerPlugin($plugin); } /** * The Transport used to send messages. * * @return Swift_Transport */ public function getTransport() { return $this->transport; } } __halt_compiler();----SIGNATURE:----GGROFll4o/6R2yeOxzh3wZ9QzxlqJq/Z0b3odIXci1fcz7qR7Nh4meJtsliIPO8K6jMkJmw2t9PAribtog4Bcdh1/dzyJImPBzwBitXj1JUTyA9cLPU5VXzivSZ/zheDQbfNt1+DU9K4gg9yGW8KlBJvbml0l5teg+3chqCgY4Cw00Rd+psQ+kuAeV4ZRv2v3aAtDGZgFLm7IQ5Wh0J+21W4FaGaGixQj/BZjSSHjFTRLpiCjZPs1I2p36vM21KqEsEHrwJ+qm1j+ymninEXp/uFq9Y5e6bK6BQ1MTVNFGWY4ZIu28udoBWdYQZES9GfXtK6DYpq2Byawbm74ulGog48baCbz7xHu4ewoW1Jgvj9Ltw+ePd0ihVbdUfxCUf8qav9UYF0rdFPZPDpZi/ThiHiGQ5LO7pV84cW7I54raT11Z1mMpeu+P0UTmtkI0/AyPYk0dafxnKvZWZL02/bpQ/rXgR5B59QrMAC+aWCGqfOjQnwCMWC7olMkPCM9BUgNWwpBguzoqzgew/MBdAJ6GBYpJRneThDWxqA3Y5UOEARIpohijbay1/NDs4HTUQOU7C/fjxnWTZ0u5vzxa+ujs8d5IUcGS+kqTGro7JTQ8H1qHAxksiU11k5D8xAjCBMQWuZJuJ1qJYOzDTqjqA9csZRJ5pZ/S8SyPORxyvDGOU=----ATTACHMENT:----MTY4MTIwMTIyNjk3NDMyIDU1NjA3NzI4MzQ5MzA1MTQgOTQ0NzAzMzcxMzkwNzA3NQ==