PHPMailer::smtpConnect
Initiate a connection to an SMTP server.
Returns false if the operation failed.
Signature
public function smtpConnect([array
$options = ] )
Parameters
$options
—
array
An array of options compatible with stream_context_create()
Returns
- boolean
Errors/Exceptions
-
phpmailerException
Violations
PHPMessDetector
Line |
Rule |
Message |
1632 - 1731 |
CyclomaticComplexity
|
The method smtpConnect() has a Cyclomatic Complexity of 27. The configured cyclomatic complexity threshold is 10. |
1632 - 1731 |
NPathComplexity
|
The method smtpConnect() has an NPath complexity of 132492. The configured NPath complexity threshold is 200. |
1632 - 1731 |
ExcessiveMethodLength
|
The method smtpConnect() has 100 lines of code. Current threshold is set to 100. Avoid really long methods. |
Checkstyle
Line |
Column |
Severity |
Message |
1711 |
143 |
warning
|
Line exceeds 120 characters; contains 143 characters |