public
|
__construct(
string $host = 'localhost',
int $port = 25,
string|null $scheme = null,
string|null $user = null,
string|null $pw = null,
string|null $oauthToken = null,
array<mixed>|null $ctx = null,
)
Parameters
| $host |
server name
|
| $port |
port
|
| $scheme |
security, one of ssl (SSL) or tls (STARTTLS)
|
| $user |
user name
|
| $pw |
password
|
| $oauthToken |
OAuth token
|
| $ctx |
resource options
|
|
#
|
protected
|
encodeBody(string|array<string, string> $body, array<string, mixed> &$headers): string
Encodes a body.
The body can either be a string, or an array with 'html' and (optionally) 'text' keys.
If the 'text' key is not specified, the plain text version is automatically generated
from the HTML.
Parameters
| $body |
the body to encode
|
| $headers |
MIME headers.
|
Returns
|
#
|