Added use of $imapPort
[squirrelmail.git] / functions / imap_general.php
index 3e8258292270258ac7c481d69890ddf73f126261..d2812bdfb0bdb43c4215a9eb42f513ac920fc831 100755 (executable)
@@ -63,9 +63,9 @@
     **  Logs the user into the imap server.  If $hide is set, no error messages
     **  will be displayed.  This function returns the imap connection handle.
     ******************************************************************************/
-   function sqimap_login ($username, $password, $imap_server_address, $hide) {
+   function sqimap_login ($username, $password, $imap_server_address, $imap_port, $hide) {
       global $color;
-      $imap_stream = fsockopen ($imap_server_address, 143, &$error_number, &$error_string);
+      $imap_stream = fsockopen ($imap_server_address, $imap_port, &$error_number, &$error_string);
       $server_info = fgets ($imap_stream, 1024);
       
       /** Do some error correction **/