Fully Qualified Name: | Zend\Mail\Transport\Sendmail |
Implements: | TransportInterface |
Class for sending email via the PHP internal mail() function
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 |
Constructor.
Parameter Name | Type | Description |
---|---|---|
$parameters | null|string|array|\Traversable | OPTIONAL |
Returns:
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
Send mail using PHP native mail()
Parameter Name | Type | Description |
---|---|---|
$to | string | |
$subject | string | |
$message | string | |
$headers | string | |
$parameters | ||
$parameters |
Returns:
Send a message
Parameter Name | Type | Description |
---|---|---|
$message | \Zend\Mail\Message |
Returns:
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
Set sendmail parameters
Used to populate the additional_parameters argument to mail()
Parameter Name | Type | Description |
---|---|---|
$parameters | null|string|array|\Traversable |
Returns: \Sendmail