API Documentation

Zend/Mail/Transport/Sendmail.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Mail  
Subpackage
Transport  
Version
$Id: Sendmail.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Mail_Transport_Sendmail

Package: Zend\Mail\Transport

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

Parent(s)
\Zend_Mail_Transport_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertypublicstring  $EOL= 'PHP_EOL'

EOL character string

Default valuePHP_EOLDetails
Type
string
Access
public  
Propertyprotectedstring  $_errstr= ''

error information

Details
Type
string
Propertypublicstring  $parameters= ''

Config options for sendmail parameters

Details
Type
string
Propertypublicstring  $subject= 'null'

Subject

Default valuenullDetails
Type
string
Access
public  

Methods

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

Constructor.

Parameters
Name Type Description
$parameters string|array|\Zend_Config

OPTIONAL (Default: null)

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

Temporary error handler for PHP native mail().

Parameters
Name Type Description
$errno int
$errstr string
$errfile string
$errline string
$errcontext array
Returns
Type Description
true
methodprotected_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.

Parameters
Name Type Description
$headers array
Throws
Exception Description
\Zend_Mail_Transport_Exception
Details
Access
protected  
methodpublic_sendMail( ) : void

Send mail using PHP native mail()

Throws
Exception Description
\Zend_Mail_Transport_Exception if parameters is set but not a string
\Zend_Mail_Transport_Exception on mail() failure
Details
Access
public  
Documentation was generated by DocBlox 0.15.1.