TYPO3  7.6
Public Member Functions | Static Public Member Functions | List of all members
Swift_SmtpTransport Class Reference
Inheritance diagram for Swift_SmtpTransport:
Swift_Transport_EsmtpTransport Swift_Transport_AbstractSmtpTransport Swift_Transport_SmtpAgent Swift_Transport

Public Member Functions

 __construct ($host= 'localhost', $port=25, $security=null)
 
- Public Member Functions inherited from Swift_Transport_EsmtpTransport
 __construct (Swift_Transport_IoBuffer $buf, array $extensionHandlers, Swift_Events_EventDispatcher $dispatcher)
 
 setHost ($host)
 
 getHost ()
 
 setPort ($port)
 
 getPort ()
 
 setTimeout ($timeout)
 
 getTimeout ()
 
 setEncryption ($encryption)
 
 getEncryption ()
 
 setSourceIp ($source)
 
 getSourceIp ()
 
 setExtensionHandlers (array $handlers)
 
 getExtensionHandlers ()
 
 executeCommand ($command, $codes=array(), &$failures=null)
 
 __call ($method, $args)
 
- Public Member Functions inherited from Swift_Transport_AbstractSmtpTransport
 __construct (Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher)
 
 setLocalDomain ($domain)
 
 getLocalDomain ()
 
 setSourceIp ($source)
 
 getSourceIp ()
 
 start ()
 
 isStarted ()
 
 send (Swift_Mime_Message $message, &$failedRecipients=null)
 
 stop ()
 
 registerPlugin (Swift_Events_EventListener $plugin)
 
 reset ()
 
 getBuffer ()
 
 executeCommand ($command, $codes=array(), &$failures=null)
 
 __destruct ()
 
- Public Member Functions inherited from Swift_Transport_SmtpAgent
 getBuffer ()
 

Static Public Member Functions

static newInstance ($host= 'localhost', $port=25, $security=null)
 

Additional Inherited Members

- Protected Member Functions inherited from Swift_Transport_EsmtpTransport
 _getBufferParams ()
 
 _doHeloCommand ()
 
 _doMailFromCommand ($address)
 
 _doRcptToCommand ($address)
 
- Protected Attributes inherited from Swift_Transport_AbstractSmtpTransport
 $_buffer
 
 $_started = false
 
 $_domain = '[127.0.0.1]'
 
 $_eventDispatcher
 
 $_sourceIp
 

Detailed Description

Sends Messages over SMTP with ESMTP support.

Author
Chris Corbyn

Swift_SmtpTransport setUsername(string $username) Set the username to authenticate with. string getUsername() Get the username to authenticate with. Swift_SmtpTransport setPassword(string $password) Set the password to authenticate with. string getPassword() Get the password to authenticate with. Swift_SmtpTransport setAuthMode(string $mode) Set the auth mode to use to authenticate. string getAuthMode() Get the auth mode to use to authenticate.

Definition at line 23 of file SmtpTransport.php.

Constructor & Destructor Documentation

__construct (   $host = 'localhost',
  $port = 25,
  $security = null 
)

Create a new SmtpTransport, optionally with $host, $port and $security.

Parameters
string$host
int$port
string$security

Definition at line 32 of file SmtpTransport.php.

References Swift_DependencyContainer\getInstance(), Swift_Transport_EsmtpTransport\setEncryption(), Swift_Transport_EsmtpTransport\setHost(), and Swift_Transport_EsmtpTransport\setPort().

Member Function Documentation

static newInstance (   $host = 'localhost',
  $port = 25,
  $security = null 
)
static

Create a new SmtpTransport instance.

Parameters
string$host
int$port
string$security
Returns
Swift_SmtpTransport

Definition at line 54 of file SmtpTransport.php.