Class Sendmail

Summary

Fully Qualified Name: Zend\Mail\Transport\Sendmail
Implements: TransportInterface

Description

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

Methods

Name Description Defined By
__construct() Constructor. Sendmail
handleMailErrors() Temporary error handler for PHP native mail(). Sendmail
mailHandler() Send mail using PHP native mail() Sendmail
send() Send a message Sendmail
setCallable() Set callback to use for mail Sendmail
setParameters() Set sendmail parameters Sendmail

Method Details

__construct()

Constructor.

Parameter Name Type Description
$parameters null|string|array|\Traversable OPTIONAL

Returns:

handleMailErrors()

Temporary error handler for PHP native mail().

Parameter Name Type Description
$errno int
$errstr string
$errfile string
$errline string
$errcontext array

Returns: bool always true

mailHandler()

Send mail using PHP native mail()

Parameter Name Type Description
$to string
$subject string
$message string
$headers string
$parameters
$parameters

Returns:

send()

Send a message

Parameter Name Type Description
$message \Zend\Mail\Message

Returns:

setCallable()

Set callback to use for mail

Primarily for testing purposes, but could be used to curry arguments.

Parameter Name Type Description
$callable callable

Returns: \Sendmail

setParameters()

Set sendmail parameters

Used to populate the additional_parameters argument to mail()

Parameter Name Type Description
$parameters null|string|array|\Traversable

Returns: \Sendmail

Top