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:----TVGreWR35/+CjTruaa0iGBPM9m26EixfI+SRsn+LWRJc3LdxhqyQuOvTPfTt4nt0mRsaERz09rCIufK9aYMCuN6g8SGNY2mFGl5evhZNnCJF3cEa7yT0LUuzwI4ur+9fqa9pw2gqiEREy5HngKrAjSaI14y7t8Oz+TcFwSXOfAlQ6vG2nrOAX6XxgufBBmKgEueh+VCBwovFvu823OWVYlurbmP83sINCE6890pleC3nYqaGXQVO1Z6Td9wwEkV7BBwe8P88EIEcGf4/SJUNsMScGEFVS5+VIcNgleXSjwaNmH5Y9umX6FH+4IcINd8hB86ImakzdbAkQlCQc5EoFnjvFmo8qjanUwBzcSIF4vwyOUOmL0H5jBFwOQvLnLcyBwpvuMv5eqzzF+n72RqRu7WGUjZ6mBT1P70b4OFAylrqoAee8Qv1nWicbRULF0yPZJhhJXd/IqOvqd+NFSN7uVTxnoI5NpWxonBiEllFRddd0csTGcF/ADEzM2LIxNDfVTmCCA1g8hkrxfilqCK6BD9DuHB1xCnoAUjdbNHpIVbFFSwq1V69L4OmZufVgIpDHvCdIRsUH4hlLgWfREPZnHGBHnTZO/2Utx0J6gve4tao9Ra5SfY3YdJbhNCEtilYq8cF9stN4M68vNf7JJT6sYzogNdIQ72xh+S9+czxvzw=----ATTACHMENT:----MjkwMTM4Njc4OTk1ODg5NCA4MTAxNjUwMjI0ODYzOTIyIDkwMTcyMjgxMDI3OTQ2MDc=