XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
SmtpTransport.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/EsmtpTransport.php';
12 //@require 'Swift/DependencyContainer.php';
13 
21 {
22 
29  public function __construct($host = 'localhost', $port = 25,
30  $security = null)
31  {
32  call_user_func_array(
33  array($this, 'Swift_Transport_EsmtpTransport::__construct'),
35  ->createDependenciesFor('transport.smtp')
36  );
37 
38  $this->setHost($host);
39  $this->setPort($port);
40  $this->setEncryption($security);
41  }
42 
50  public static function newInstance($host = 'localhost', $port = 25,
51  $security = null)
52  {
53  return new self($host, $port, $security);
54  }
55 
56 }