So I found a way to fix this problem. And I think Invision shoult add something in the configuration of the SMTP.
I'm using the SMTP from Protonmail with SSL. For SSL and TLS Protonmail support only AUTH PLAIN (not AUTH LOGIN). But Invision use only AUTH LOGIN and doesn't support AUTH PLAIN.
So when I configure the SMTP I see the following message:
535 5.7.8 Error: authentication failed: Invalid authentication mechanism
To fix this In the file
system/Email/Outgoing/Smtp.php
I replaced this part:
if ( $this->smtpUser )
{
$responseCode = $this->_sendCommand( 'AUTH LOGIN', 334 );
$responseCode = $this->_sendCommand( base64_encode( $this->smtpUser ), 334 );
$responseCode = $this->_sendCommand( base64_encode( $this->smtpPass ), 235 );
}
With this:
if ( $this->smtpUser )
{
$responseCode = $this->_sendCommand( 'AUTH PLAIN', 334 );
$responseCode = $this->_sendCommand( base64_encode("\0" . $this->smtpUser . "\0" . $this->smtpPass), 235);
}
And it's working. I think Invision need to add an option in the SMTP configuration to allow user to choose between AUTH PLAN or AUTH LOGIN or automatically detect the options available.
Regards