[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/Transport/ -> AbstractSmtpTransport.php (summary)

Sends Messages over SMTP.

Author: Chris Corbyn
File Size: 490 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 29 functions

  __construct()
  setLocalDomain()
  getLocalDomain()
  setSourceIp()
  getSourceIp()
  start()
  isStarted()
  send()
  stop()
  registerPlugin()
  reset()
  getBuffer()
  executeCommand()
  _readGreeting()
  _doHeloCommand()
  _doMailFromCommand()
  _doRcptToCommand()
  _doDataCommand()
  _streamMessage()
  _getReversePath()
  _throwException()
  _assertResponseCode()
  _getFullResponse()
  _doMailTransaction()
  _sendTo()
  _sendBcc()
  _lookupHostname()
  _isFqdn()
  __destruct()

Functions
Functions that are not part of a class:

__construct(Swift_Transport_IoBuffer $buf, Swift_Events_EventDispatcher $dispatcher)   X-Ref
Creates a new EsmtpTransport using the given I/O buffer.

param: Swift_Transport_IoBuffer     $buf
param: Swift_Events_EventDispatcher $dispatcher

setLocalDomain($domain)   X-Ref
Set the name of the local domain which Swift will identify itself as.

This should be a fully-qualified domain name and should be truly the domain
you're using.

If your server doesn't have a domain name, use the IP in square
brackets (i.e. [127.0.0.1]).

param: string $domain
return: Swift_Transport_AbstractSmtpTransport

getLocalDomain()   X-Ref
Get the name of the domain Swift will identify as.

return: string

setSourceIp($source)   X-Ref
Sets the source IP.

param: string $source

getSourceIp()   X-Ref
Returns the IP used to connect to the destination.

return: string

start()   X-Ref
Start the SMTP connection.


isStarted()   X-Ref
Test if an SMTP connection has been established.

return: bool

send(Swift_Mime_Message $message, &$failedRecipients = null)   X-Ref
Send the given Message.

Recipient/sender data will be retrieved from the Message API.
The return value is the number of recipients who were accepted for delivery.

param: Swift_Mime_Message $message
param: string[]           $failedRecipients An array of failures by-reference
return: int

stop()   X-Ref
Stop the SMTP connection.


registerPlugin(Swift_Events_EventListener $plugin)   X-Ref
Register a plugin.

param: Swift_Events_EventListener $plugin

reset()   X-Ref
Reset the current mail transaction.


getBuffer()   X-Ref
Get the IoBuffer where read/writes are occurring.

return: Swift_Transport_IoBuffer

executeCommand($command, $codes = array()   X-Ref
Run a command against the buffer, expecting the given response codes.

If no response codes are given, the response will not be validated.
If codes are given, an exception will be thrown on an invalid response.

param: string   $command
param: int[]    $codes
param: string[] $failures An array of failures by-reference
return: string

_readGreeting()   X-Ref
No description

_doHeloCommand()   X-Ref
No description

_doMailFromCommand($address)   X-Ref
No description

_doRcptToCommand($address)   X-Ref
No description

_doDataCommand()   X-Ref
No description

_streamMessage(Swift_Mime_Message $message)   X-Ref
No description

_getReversePath(Swift_Mime_Message $message)   X-Ref
No description

_throwException(Swift_TransportException $e)   X-Ref
No description

_assertResponseCode($response, $wanted)   X-Ref
No description

_getFullResponse($seq)   X-Ref
No description

_doMailTransaction($message, $reversePath, array $recipients, array &$failedRecipients)   X-Ref
No description

_sendTo(Swift_Mime_Message $message, $reversePath, array $to, array &$failedRecipients)   X-Ref
No description

_sendBcc(Swift_Mime_Message $message, $reversePath, array $bcc, array &$failedRecipients)   X-Ref
No description

_lookupHostname()   X-Ref
No description

_isFqdn($hostname)   X-Ref
No description

__destruct()   X-Ref
Destructor.




Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1