Class Swift_Connection_NativeMail

Description

Swift mail() Connection NOTE: This class is nothing more than a stub. The MailSend plugin does the actual sending.

Located in /Swift/Connection/NativeMail.php (line 20)

Swift_ConnectionBase
   |
   --Swift_Connection_NativeMail
Method Summary
boolean isAlive ()
void postConnect ( $instance)
string read ()
void setResponse (string $int)
void start ()
void stop ()
void write (string $command, [ $end = "\r\n"])
Methods
isAlive (line 93)

Check if the process is still alive

boolean isAlive ()
postConnect (line 32)

Sets the MailSend plugin in Swift once Swift has connected

void postConnect ( $instance)
  • Swift $instance: The current instance of Swift

Redefinition of:
Swift_ConnectionBase::postConnect()
Execute any needed logic after connecting and handshaking
read (line 42)

Read a full response from the buffer (this is spoofed if running in -t mode)

  • throws: Swift_Connection_Exception Upon failure to read
string read ()
setResponse (line 50)

Set the response this stub will return

void setResponse (string $int)
  • string $int: The response to send
start (line 77)

Try to start the connection

  • throws: Swift_Connection_Exception Upon failure to start
void start ()
stop (line 85)

Try to close the connection

  • throws: Swift_Connection_Exception Upon failure to close
void stop ()
write (line 59)

Write a command to the process (leave off trailing CRLF)

  • throws: Swift_Connection_Exception Upon failure to write
void write (string $command, [ $end = "\r\n"])
  • string $command: The command to send
  • $end

Inherited Methods

Inherited From Swift_ConnectionBase

Swift_ConnectionBase::getAttributes()
Swift_ConnectionBase::hasExtension()
Swift_ConnectionBase::postConnect()
Swift_ConnectionBase::setExtension()

Documentation generated on Tue, 06 Mar 2007 23:32:26 +0000 by phpDocumentor 1.3.1