Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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/MailTransport.php';
12
//@require 'Swift/DependencyContainer.php';
13
 
14
/**
15
 * Sends Messages using the mail() function.
16
 * @package Swift
17
 * @subpackage Transport
18
 * @author Chris Corbyn
19
 */
20
class Swift_MailTransport extends Swift_Transport_MailTransport
21
{
22
 
23
  /**
24
   * Create a new MailTransport, optionally specifying $extraParams.
25
   * @param string $extraParams
26
   */
27
  public function __construct($extraParams = '-f%s')
28
  {
29
    call_user_func_array(
30
      array($this, 'Swift_Transport_MailTransport::__construct'),
31
      Swift_DependencyContainer::getInstance()
32
        ->createDependenciesFor('transport.mail')
33
      );
34
 
35
    $this->setExtraParams($extraParams);
36
  }
37
 
38
  /**
39
   * Create a new MailTransport instance.
40
   * @param string $extraParams To be passed to mail()
41
   * @return Swift_MailTransport
42
   */
43
  public static function newInstance($extraParams = '-f%s')
44
  {
45
    return new self($extraParams);
46
  }
47
 
48
}