XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
SendmailTransport.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of SwiftMailer.
5  * (c) 2004-2009 Chris Corbyn
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10 
11 //@require 'Swift/Transport/SendmailTransport.php';
12 //@require 'Swift/DependencyContainer.php';
13 
21 {
22 
27  public function __construct($command = '/usr/sbin/sendmail -bs')
28  {
29  call_user_func_array(
30  array($this, 'Swift_Transport_SendmailTransport::__construct'),
32  ->createDependenciesFor('transport.sendmail')
33  );
34 
35  $this->setCommand($command);
36  }
37 
43  public static function newInstance($command = '/usr/sbin/sendmail -bs')
44  {
45  return new self($command);
46  }
47 
48 }