SilverStripe\EnvironmentCheck\Checks\SMTPConnectCheck
Checks if the SMTP connection configured through PHP.ini works as expected.
Only checks socket connection with HELO command, not actually sending the email.
Synopsis
class SMTPConnectCheck
implements
EnvironmentCheck
{
- // methods
- public void __construct()
- public array check()
Hierarchy
Constants
Name | Value |
---|---|
ERROR | 3 |
WARNING | 2 |
OK | 1 |
Members
protected
- $host — string
- $port — int
- $timeout
—
int
Timeout (in seconds).
Methods
public
- __construct()
- check() — {@inheritDoc}