__construct()
handleMailErrors()
mailHandler()
send()
setCallable()
setParameters()
isWindowsOs()
prepareBody()
prepareHeaders()
prepareParameters()
prepareRecipients()
prepareSubject()
$callable
$errstr
$operatingSystem
$parameters
Class for sending email via the PHP internal mail() function
__construct(null | string | array | \Traversable $parameters)
nullstringarray\Traversable
OPTIONAL (Default: null)
handleMailErrors(int $errno, string $errstr, string $errfile, string $errline, array $errcontext) : bool
int
string
string
string
array
bool
always truemailHandler(string $to, string $subject, string $message, string $headers, $parameters)
string
string
string
string
\Zend\Mail\Exception\RuntimeException |
---|
setCallable(\Zend\Mail\Transport\callable $callable) : \Zend\Mail\Transport\Sendmail
Primarily for testing purposes, but could be used to curry arguments.
\Zend\Mail\Transport\callable
\Zend\Mail\Exception\InvalidArgumentException |
---|
setParameters(null | string | array | \Traversable $parameters) : \Zend\Mail\Transport\Sendmail
Used to populate the additional_parameters argument to mail()
nullstringarray\Traversable
\Zend\Mail\Exception\InvalidArgumentException |
---|
isWindowsOs() : bool
bool
prepareBody(\Zend\Mail\Message $message) : string
prepareHeaders(\Zend\Mail\Message $message) : string
prepareParameters(\Zend\Mail\Message $message) : string
Basically, overrides the MAIL FROM envelope with either the Sender or From address.
\Zend\Mail\Message
string
prepareRecipients(\Zend\Mail\Message $message) : string
\Zend\Mail\Message
\Zend\Mail\Exception\RuntimeException |
---|
string
prepareSubject(\Zend\Mail\Message $message) : string
$callable : \Zend\Mail\Transport\callable
$errstr : string
$parameters : string