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.
Class for sending eMails via the PHP internal mail() function
string $EOL = 'PHP_EOL'EOL character string
Detailsstring $_errstr = ''error information
Detailsstring $parameters = ''Config options for sendmail parameters
Detailsstring $subject = 'null'Subject
Details__construct(
string|array|Zend_Config $parameters
=
null
)
:
voidConstructor.
Details_handleMailErrors(
int $errno, string $errstr, string $errfile
=
null, string $errline
=
null, array $errcontext
=
null
)
:
trueTemporary error handler for PHP native mail().
Details_prepareHeaders(
array $headers
)
:
voidFormat 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.
Details_sendMail(
)
:
voidSend mail using PHP native mail()
Details