- $imapConnection = sqimap_login($username, quotemeta($key), $imapServerAddress, $imapPort, 0);
+ if ($force_username_lowercase)
+ $login_username = strtolower($login_username);
+ $imapConnection = sqimap_login($login_username, $key, $imapServerAddress, $imapPort, 0);
+ if (!$imapConnection) {
+ exit;
+ }