TYPO3  7.6
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 
24 {
32  public function __construct($host = 'localhost', $port = 25, $security = null)
33  {
34  call_user_func_array(
35  array($this, 'Swift_Transport_EsmtpTransport::__construct'),
37  ->createDependenciesFor('transport.smtp')
38  );
39 
40  $this->setHost($host);
41  $this->setPort($port);
42  $this->setEncryption($security);
43  }
44 
54  public static function newInstance($host = 'localhost', $port = 25, $security = null)
55  {
56  return new self($host, $port, $security);
57  }
58 }