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:----LEi1i6T3YaV9Pj3jaBPYOev04a5HiNLeC/t3zODdChBNDpdUoj92X5OIiS1mYTH6sHwdA8ghCTGloADBYQFj/UYXmVZ0+zfRX8jCPezZdyIkvF6+Z7UYdcC6BdaikN41ynv8X9Yac0Ya1ygkHmmJTafUh20dpDXXQwgRRS9WkYq0MwQhqYD9vERmyN0o234OGSpvvFHYU3nGHp9RVsNEOKmpOpBw9it0UzrY6X9Lroo+wbn6Q9GYUxJimm9LAaqOAu/8wZU1PrmMUmTYy0eAvixdD586d/fsqw/0zgz/MezFi+u4VEB+Oqs9dgZoqgL18VjnhUSfllv6mOeNaklDx/vgZNj723J1yFsYmZn/Ef15H5+Oh+vTeHtugZYWJI5bAuwJjKS8Qfe17N1aCO1mBeqYTgupTYkA1EXMhAzOwNWLWd85mM3j4nkGGvSwKXnj4KoJgtcnYRzYoGxOPDO3pEQ/SXvWBaRbcttJFce9R/8XKHw3zyHXMF2SC5kjGZhJ4fG4vTVkPdbJvzSTurV+12whlqD1cIy8YQU1VXSDRjw57yaP3VPjCK0boZhd8wPWE2ffV7kx5iXdK4EIxdanA1xh+P3Vnb5KcZFih0auvSUzIhAGuFZ4IanWw9ufMCdexkcTJCfpuviQWtMuZLufjUeCrZNLI/gTN0QBCpzz6zY=----ATTACHMENT:----MTA0ODA2NzY4MjUwNDI0MiAzMDQzOTI5OTg3NDU1ODQgMTUwMzM4MTM4MjAxMTQ0Mw==