Class Zend_Mail_Transport_Sendmail

Description

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

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Mail/Transport/Sendmail.php (line 39)

Zend_Mail_Transport_Abstract
   |
   --Zend_Mail_Transport_Sendmail
Variable Summary
 string $EOL
 string $parameters
 string $subject
 string $_errstr
Method Summary
 void __construct ([string|array|Zend_Config $parameters = null])
 true _handleMailErrors (int $errno, string $errstr, [string $errfile = null], [string $errline = null], [ $errcontext = null])
 void _prepareHeaders (array $headers)
 void _sendMail ()
Variables
string $EOL = PHP_EOL (line 61)

EOL character string

  • access: public

Redefinition of:
Zend_Mail_Transport_Abstract::$EOL
EOL character string used by transport
string $parameters (line 54)

Config options for sendmail parameters

  • access: public
string $subject = null (line 46)

Subject

  • access: public
string $_errstr (line 67)

error information

  • access: protected

Inherited Variables

Inherited from Zend_Mail_Transport_Abstract

Zend_Mail_Transport_Abstract::$body
Zend_Mail_Transport_Abstract::$boundary
Zend_Mail_Transport_Abstract::$header
Zend_Mail_Transport_Abstract::$recipients
Zend_Mail_Transport_Abstract::$_headers
Zend_Mail_Transport_Abstract::$_isMultipart
Zend_Mail_Transport_Abstract::$_mail
Zend_Mail_Transport_Abstract::$_parts
Methods
Constructor __construct (line 75)

Constructor.

  • access: public
void __construct ([string|array|Zend_Config $parameters = null])
  • string|array|Zend_Config $parameters: OPTIONAL (Default: null)
_handleMailErrors (line 214)

Temporary error handler for PHP native mail().

  • access: public
true _handleMailErrors (int $errno, string $errstr, [string $errfile = null], [string $errline = null], [ $errcontext = null])
  • int $errno
  • string $errstr
  • string $errfile
  • string $errline
  • array $errcontext
_prepareHeaders (line 154)

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.

  • throws: Zend_Mail_Transport_Exception
  • access: protected
void _prepareHeaders (array $headers)
  • array $headers

Redefinition of:
Zend_Mail_Transport_Abstract::_prepareHeaders()
Prepare header string for use in transport
_sendMail (line 98)

Send mail using PHP native mail()

  • throws: Zend_Mail_Transport_Exception on mail() failure
  • throws: Zend_Mail_Transport_Exception if parameters is set but not a string
  • access: public
void _sendMail ()

Redefinition of:
Zend_Mail_Transport_Abstract::_sendMail()
Send an email independent from the used transport

Inherited Methods

Inherited From Zend_Mail_Transport_Abstract

 Zend_Mail_Transport_Abstract::send()
 Zend_Mail_Transport_Abstract::_buildBody()
 Zend_Mail_Transport_Abstract::_formatHeader()
 Zend_Mail_Transport_Abstract::_getHeaders()
 Zend_Mail_Transport_Abstract::_prepareHeaders()
 Zend_Mail_Transport_Abstract::_sendMail()

Documentation generated on Mon, 21 Jun 2010 15:44:03 -0400 by phpDocumentor 1.4.3