Initialize the SMTP transport.
public init(array $settings): bool
The settings array must contain the following keys:
- server: The SMTP server to connect to.
- port: The port to connect to. Default is 25.
- timeout: The timeout in seconds to wait for a response from the server. Default is 5.
Parameter | Type | Description |
---|
$settings | array | |
public send(TransportMessage $message): mixed
Parameter | Type | Description |
---|
$message | TransportMessage | |
private write(string $msg): int
Parameter | Type | Description |
---|
$msg | string | |
private read(int $code, int $len = 1024, ?string $message, string $response = false): bool
Parameter | Type | Description |
---|
$code | int | |
$len | int | |
$message | string | |
$response | string | |
private getMessageCode(string $buf, ?string $message): int
Parameter | Type | Description |
---|
$buf | string | |
$message | string | |
Encodes an email address for use in SMTP commands.
private encodeEmail(array $email): string
Parameter | Type | Description |
---|
$email | array | |
Generated by Hazaar API Doc Generator