// Bug: can't get error message. See comments in sqimap_create_stream().
}
} else {
// php install does not support stream_socket_enable_crypto() function
$this->dlv_msg= _("SMTP STARTTLS is enabled in SquirrelMail configuration, but used PHP version does not support functions that allow to enable encryption on open socket.");
return 0;
}
}
// FIXME: check ehlo response before using authentication
// Try authentication by a plugin
//
// NOTE: there is another hook in functions/auth.php called "smtp_auth"
// that allows a plugin to specify a different set of login credentials
// (so is slightly mis-named, but is too old to change), so be careful