Zend\Mail\Transport\Sendmail
Class for sending email via the PHP internal mail() function
Synopsis
class Sendmail
implements
TransportInterface
{
- // members
- protected string $parameters;
- protected callable $callable;
- protected string $errstr;
- protected string $operatingSystem;
- // methods
- public void __construct()
- public Sendmail setParameters()
- public Sendmail setCallable()
- public void send()
- protected string prepareRecipients()
- protected string prepareSubject()
- protected string prepareBody()
- protected string prepareHeaders()
- protected string prepareParameters()
- public void mailHandler()
- public bool handleMailErrors()
- protected bool isWindowsOs()
Hierarchy
Implements
Members
protected
- $callable
—
Zend\Mail\Transport\callable
Callback to use when sending mail; typically, {@link mailHandler()} - $errstr
—
string
error information - $operatingSystem — string
- $parameters
—
string
Config options for sendmail parameters
Methods
protected
- isWindowsOs() — Is this a windows OS?
- prepareBody() — Prepare the body string
- prepareHeaders() — Prepare the textual representation of headers
- prepareParameters() — Prepare additional_parameters argument
- prepareRecipients() — Prepare recipients list
- prepareSubject() — Prepare the subject line string
public
- __construct() — Constructor.
- handleMailErrors() — Temporary error handler for PHP native mail().
- mailHandler() — Send mail using PHP native mail()
- send() — Send a message
- setCallable() — Set callback to use for mail
- setParameters() — Set sendmail parameters