class SMTPConnectCheck implements EnvironmentCheck (View source)

Checks if the SMTP connection configured through PHP.ini works as expected.

Only checks socket connection with HELO command, not actually sending the email.

Properties

protected string $host
protected int $port
protected int $timeout

Timeout (in seconds).

Methods

public
__construct(null|string $host = null, null|int $port = null, int $timeout = 15)

No description

public
array
check()

No description

Details

__construct(null|string $host = null, null|int $port = null, int $timeout = 15)

No description

Parameters

null|string $host
null|int $port
int $timeout

array check()

No description

Return Value

array

Result with 'status' and 'message' keys.

Status is EnvironmentCheck::ERROR, EnvironmentCheck::WARNING, or EnvironmentCheck::OK.