Class for sending email via the PHP internal mail() function
Constructor.
| Parameters: | null|string|array|Traversable – OPTIONAL (Default: null) |
|---|
Set sendmail parameters
Used to populate the additional_parameters argument to mail()
| Parameters: | null|string|array|Traversable – |
|---|---|
| Throws ZendMailExceptionInvalidArgumentException: | |
| Return type: | Sendmail |
Set callback to use for mail
Primarily for testing purposes, but could be used to curry arguments.
| Parameters: | callable – |
|---|---|
| Throws ZendMailExceptionInvalidArgumentException: | |
| Return type: | Sendmail |
Send a message
| Parameters: | ZendMailMessage – |
|---|
Prepare recipients list
| Parameters: | ZendMailMessage – |
|---|---|
| Throws ZendMailExceptionRuntimeException: | |
| Return type: | string |
Prepare the subject line string
| Parameters: | ZendMailMessage – |
|---|---|
| Return type: | string |
Prepare the body string
| Parameters: | ZendMailMessage – |
|---|---|
| Return type: | string |
Prepare the textual representation of headers
| Parameters: | ZendMailMessage – |
|---|---|
| Return type: | string |
Prepare additional_parameters argument
Basically, overrides the MAIL FROM envelope with either the Sender or From address.
| Parameters: | ZendMailMessage – |
|---|---|
| Return type: | string |
Send mail using PHP native mail()
| Parameters: |
|
|---|---|
| Throws ZendMailExceptionRuntimeException: | |