Class Swift_Plugin_MailSend

Description

Implements interfaces:

Swift mail() send plugin Sends the message using mail() when a SendEvent is fired. Using the NativeMail connection provides stub responses to allow this to happen cleanly.

Located in /Swift/Plugin/MailSend.php (line 21)


	
			
Variable Summary
string $oldLE
string $OS
string $returnPath
Method Summary
Swift_Plugin_MailSend __construct ([string $params = "-oi -f %s"])
void beforeSendPerformed ( $e)
void doMail ( $to,  $subject,  $message,  $headers,  $params)
string getOS ()
boolean isWindows ()
void sendPerformed ( $e)
void setAdditionalParams (string $params)
void setOS (string $os)
Variables
string $additionalParams (line 42)

5th parameter in mail().

  • access: protected
string $oldLE = "\r\n" (line 37)

The line ending before we intrusively change it

  • access: protected
string $OS = null (line 27)

The operating system of the server

  • access: protected
string $returnPath = null (line 32)

The return path in use here

  • access: protected
Methods
Constructor __construct (line 48)

Constructor.

  • access: public
Swift_Plugin_MailSend __construct ([string $params = "-oi -f %s"])
  • string $params: 5th mail() function parameter as a sprintf() formatted string where %s is the sender.
beforeSendPerformed (line 98)

Swift's BeforeSendEvent listener.

Invoked just before Swift sends a message

  • access: public
void beforeSendPerformed ( $e)
doMail (line 153)
  • access: public
void doMail ( $to,  $subject,  $message,  $headers,  $params)
  • $to
  • $subject
  • $message
  • $headers
  • $params
getAdditionalParams (line 65)

Get the 5th mail() function parameter as a sprintf() string.

  • access: public
string getAdditionalParams ()
getOS (line 81)

Get the operating system string

  • access: public
string getOS ()
isWindows (line 89)

Check if this is windows or not

  • access: public
boolean isWindows ()
sendPerformed (line 111)

Swift's SendEvent listener.

Invoked when Swift sends a message

  • access: public
  • throws: Swift_ConnectionException If mail() returns false
void sendPerformed ( $e)
setAdditionalParams (line 57)

Set the 5th mail() function parameter as a sprintf() formatted string where %s is the sender.

  • access: public
void setAdditionalParams (string $params)
  • string $params
setOS (line 73)

Set the operating system string (changes behaviour with LE)

  • access: public
void setOS (string $os)
  • string $os: The operating system

Documentation generated on Wed, 26 Mar 2008 20:33:08 +1100 by phpDocumentor 1.3.1