Class Deliver_SendMail

Description

Delivers messages using the sendmail binary

  • author: Marc Groot Koerkamp

Located in /nasmail/class/deliver/Deliver_SendMail.class.php (line 24)

Deliver
   |
   --Deliver_SendMail
Variable Summary
Method Summary
 void Deliver_SendMail ([array $params = array()])
 boolean finalizeStream (resource $stream)
 void initStream (Message $message, string $sendmail_path)
Variables
string $sendmail_args = '-i -t' (line 37)

Extra sendmail arguments

Parameter can be set in class constructor function.

WARNING: Introduction of this parameter broke backwards compatibility with workarounds specific to qmail-inject.

If parameter needs some security modifications, it should be set to private in PHP 5+ in order to prevent uncontrolled access.

string $sendmail_command = '' (line 44)

Stores used sendmail command Private variable that is used to inform about used sendmail command.

Methods
Constructor Deliver_SendMail (line 52)

Constructor function

void Deliver_SendMail ([array $params = array()])
  • array $params: configuration options. array key = option name, array value = option value.
finalizeStream (line 109)

function finalizeStream

Close the stream.

  • access: public
boolean finalizeStream (resource $stream)
  • resource $stream
initStream (line 88)

function initStream

Initialise the sendmail connection.

  • access: public
void initStream (Message $message, string $sendmail_path)
  • Message $message: Message object containing the from address
  • string $sendmail_path: Location of sendmail binary

Redefinition of:
Deliver::initStream()
function initStream - reserved for extended functionality

Inherited Methods

Inherited From Deliver

 Deliver::calculate_references()
 Deliver::clean_crlf()
 Deliver::foldLine()
 Deliver::getBCC()
 Deliver::initStream()
 Deliver::ip2hex()
 Deliver::mail()
 Deliver::mimeBoundary()
 Deliver::prepareMIME_Header()
 Deliver::prepareRFC822_Header()
 Deliver::preWriteToStream()
 Deliver::strip_crlf()
 Deliver::timezone()
 Deliver::writeBody()
 Deliver::writeBodyPart()
 Deliver::writeToStream()

Documentation generated on Sun, 22 Nov 2009 17:36:26 +0200 by phpDocumentor 1.4.3