Methods
Constructor
__construct(array | \Traversable | null $options)
Inherited
inherited_from |
\Zend\Stdlib\AbstractOptions::__construct() |
Parameters
$options
array\Traversablenull
Get a configuration property
__get(string $key) : mixed
Inherited
see |
\Zend\Stdlib\ParameterObject::__get() |
inherited_from |
\Zend\Stdlib\AbstractOptions::__get() |
Parameters
$key
string
Exceptions
Returns
mixed
Test if a configuration property is null
__isset(string $key) : bool
Inherited
see |
\Zend\Stdlib\ParameterObject::__isset() |
inherited_from |
\Zend\Stdlib\AbstractOptions::__isset() |
Parameters
$key
string
Returns
bool
Set a configuration property
__set(string $key, mixed $value) : void
Inherited
see |
\Zend\Stdlib\ParameterObject::__set() |
inherited_from |
\Zend\Stdlib\AbstractOptions::__set() |
Parameters
$key
string
$value
mixed
Exceptions
Set a configuration property to NULL
__unset(string $key) : void
Inherited
see |
\Zend\Stdlib\ParameterObject::__unset() |
inherited_from |
\Zend\Stdlib\AbstractOptions::__unset() |
Parameters
$key
string
Exceptions
Get connection class
getConnectionClass() : string
This should be either the class Zend\Mail\Protocol\Smtp or a class
extending it -- typically a class in the Zend\Mail\Protocol\Smtp\Auth
namespace.
Returns
string
Get connection configuration array
getConnectionConfig() : array
Get the host name
getHost() : string
Return the local client hostname
getName() : string
Get the port the SMTP server runs on
getPort() : int
Set connection class
setConnectionClass(string $connectionClass) : \Zend\Mail\Transport\SmtpOptions
Parameters
$connectionClass
string
the value to be set
Exceptions
Returns
Set the local client hostname or IP
setName(string $name) : \Zend\Mail\Transport\SmtpOptions
todo |
hostname/IP validation |
Parameters
$name
string
Exceptions
Returns
Cast to array
toArray() : array
Inherited
inherited_from |
\Zend\Stdlib\AbstractOptions::toArray() |
Returns
array
Properties
We use the __ prefix to avoid collisions with properties in
user-implementations.
$__strictMode__ : bool
Inherited
inherited_from |
\Zend\Stdlib\AbstractOptions::$$__strictMode__ |
$connectionClass
$connectionClass : string
Connection configuration (passed to the underlying Protocol class)
$connectionConfig : array
<p>Remote SMTP hostname or IP</p>
$host : string
<p>Local client hostname</p>
$name : string