Welcome Guest, Not a member yet? Register   Sign In
Mail Class Error
#6

(This post was last modified: 06-12-2020, 08:39 AM by jreklund.)

To my knowledge, you can't specify any cypher with ssl. It's based on the systems OpenSSL version.
Here are the copy of the code connecting to the server.

Does the debug specify something more specific, on where it fails?

PHP Code:
    protected function SMTPConnect()
    {
        if (
is_resource($this->SMTPConnect))
        {
            return 
true;
        }
        
$ssl               = ($this->SMTPCrypto === 'ssl') ? 'ssl://' '';
        
$this->SMTPConnect fsockopen(
                
$ssl $this->SMTPHost$this->SMTPPort$errno$errstr$this->SMTPTimeout
        
);
        if (! 
is_resource($this->SMTPConnect))
        {
            
$this->setErrorMessage(lang('Email.SMTPError', [$errno ' ' $errstr]));
            return 
false;
        }
        
stream_set_timeout($this->SMTPConnect$this->SMTPTimeout);
        
$this->setErrorMessage($this->getSMTPData());
        if (
$this->SMTPCrypto === 'tls')
        {
            
$this->sendCommand('hello');
            
$this->sendCommand('starttls');
            
$crypto stream_socket_enable_crypto($this->SMTPConnecttrueSTREAM_CRYPTO_METHOD_TLS_CLIENT);
            if (
$crypto !== true)
            {
                
$this->setErrorMessage(lang('Email.SMTPError'$this->getSMTPData()));
                return 
false;
            }
        }
        return 
$this->sendCommand('hello');
    } 
Reply


Messages In This Thread
Mail Class Error - by 68thorby68 - 06-11-2020, 12:04 PM
RE: Mail Class Error - by jreklund - 06-11-2020, 01:40 PM
RE: Mail Class Error - by 68thorby68 - 06-11-2020, 05:13 PM
RE: Mail Class Error - by InsiteFX - 06-12-2020, 02:59 AM
RE: Mail Class Error - by 68thorby68 - 06-12-2020, 03:35 AM
RE: Mail Class Error - by dave friend - 06-13-2020, 09:46 AM
RE: Mail Class Error - by jreklund - 06-12-2020, 08:39 AM
RE: Mail Class Error - by dave friend - 06-12-2020, 06:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB