FIX : Fix warning (function errorHandler() is not defined in this class so let the class handle the errors)
This commit is contained in:
parent
10fb793fb1
commit
1ec6317b80
@ -392,7 +392,6 @@ class SMTPs
|
||||
} else {
|
||||
if (function_exists('stream_socket_client') && !empty($this->_options)) {
|
||||
$socket_context = stream_context_create($this->_options); // An array of options for stream_context_create()
|
||||
set_error_handler([$this, 'errorHandler']);
|
||||
$this->socket = @stream_socket_client(
|
||||
preg_replace('@tls://@i', '', $this->getHost()).// Host to 'hit', IP or domain
|
||||
':'.$this->getPort(), // which Port number to use
|
||||
|
||||
Loading…
Reference in New Issue
Block a user