Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/www/apache/doc2//pear/Mail/sendmail.php
PEAR 2000/12/03 -

Mail_sendmail

PEAR
   |
  +-- Mail
     |
    +-- Mail_sendmail

Sendmail implementation of the PEAR Mail:: interface.

 

private class Mail_sendmail extends Mail

Sendmail implementation of the PEAR Mail:: interface.

AuthorsStig Bakken <ssb@fast.no>
SincePHP 4.0.2

 

Methods inherited from Mail

factory, prepareheaders, parserecipients

Methods inherited from PEAR

pear, _pear, iserror, _pear_call_destructors

Public Method Summary

void

Mail_sendmail(array $params)

Constructor.
mixed

send(mixed $recipients, array $headers, string $body)

Implements Mail::send() function using the sendmailWarning: documentation is missing.

Fields inherited from PEAR

$_debug

Private Field Summary

string

$sendmail_path

The location of the sendmail binary on the filesystem.

Public Method Details

Mail_sendmail

public void Mail_sendmail( array $params )

  Constructor.
Instantiates a new Mail_sendmail:: object based on the parameterspassed in. It looks for the following parameters:sendmail_path The location of the sendmail binary on thefilesystem. Defaults to '/usr/sbin/sendmail'.If a parameter is present in the $params array, it replaces thedefault.

Parameter
array $params
containing any parameters different from the
defaults.
Returns void


send

public mixed send( mixed $recipients, array $headers, string $body )

  Implements Mail::send() function using the sendmail
command-line binary.

Warning: documentation is missing.

Parameter
mixed $recipients
a comma-seperated list of recipients
(RFC822 compliant), or an array of recipients,
each RFC822 valid. This may contain recipients not
specified in the headers, for Bcc:, resending
messages, etc.
array $headers
array of headers to send with the mail, in an
associative array, where the array key is the
header name (ie, 'Subject'), and the array value
is the header value (ie, 'test'). The header
produced from those values would be 'Subject:
test'.
string $body
full text of the message body, including any
Mime parts, etc.
Returns mixed

Returns true on success, or a PEAR_Error
containing a descriptive error message on
failure.


Private Field Details

$sendmail_path

private string $sendmail_path

>>'/usr/sbin/sendmail'<<

The location of the sendmail binary on the filesystem.



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta