API Documentation

Mail/Transport/Sendmail.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Mail
subpackage
Transport
version
$Id: Sendmail.php 21605 2010-03-22 15:09:03Z yoshida@zend.co.jp $
Classes
Zend_Mail_Transport_Sendmail

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Mail_Transport_Sendmail

Extends from
Zend_Mail_Transport_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Mail
subpackage
Transport
Properties
$subject
$parameters
$EOL
$_errstr
Methods
__construct
_sendMail
_prepareHeaders
_handleMailErrors

Description

Class for sending eMails via the PHP internal mail() function

Properties

$EOL

string $EOL = 'PHP_EOL'

EOL character string

Details

$EOL
string
visibility
public
default
PHP_EOL
final
false
static
false
access
public

$_errstr

string $_errstr = ''

error information

Details

$_errstr
string
visibility
protected
default
final
false
static
false

$parameters

string $parameters = ''

Config options for sendmail parameters

Details

$parameters
string
visibility
public
default
final
false
static
false

$subject

string $subject = 'null'

Subject

Details

$subject
string
visibility
public
default
null
final
false
static
false
access
public

Methods

__construct

__construct( string|array|Zend_Config $parameters = null ) : void

Constructor.

Arguments
$parameters
stringarrayZend_Config
OPTIONAL (Default: null)
Details
visibility
public
final
false
static
false

_handleMailErrors

_handleMailErrors( int $errno, string $errstr, string $errfile = null, string $errline = null, array $errcontext = null ) : true

Temporary error handler for PHP native mail().

Arguments
$errno
int
$errstr
string
$errfile
string
$errline
string
$errcontext
array
Output
true
Details
visibility
public
final
false
static
false

_prepareHeaders

_prepareHeaders( array $headers ) : void

Format and fix headers

mail() uses its $to and $subject arguments to set the To: and Subject: headers, respectively. This method strips those out as a sanity check to prevent duplicate header entries.

Arguments
$headers
array
Details
visibility
protected
final
false
static
false
access
protected
throws

_sendMail

_sendMail( ) : void

Send mail using PHP native mail()

Details
visibility
public
final
false
static
false
access
public
throws
if parameters is set but not a string
throws
on mail() failure
Documentation was generated by DocBlox.