diff --git a/phpgwapi/inc/class.auth_mail.inc.php b/phpgwapi/inc/class.auth_mail.inc.php index c315381c4f..a5db4b38a7 100644 --- a/phpgwapi/inc/class.auth_mail.inc.php +++ b/phpgwapi/inc/class.auth_mail.inc.php @@ -40,8 +40,13 @@ $phpgw_info["server"]["mail_port"] = "110"; } - $mailauth = imap_open("{".$phpgw_info["server"]["mail_server"] - .":".$phpgw_info["server"]["mail_port"]."}INBOX", $username , $passwd); + if( $phpgw_info["server"]["mail_server_type"]=="pop3") { + $mailauth = imap_open("{".$phpgw_info["server"]["mail_server"]."/pop3" + .":".$phpgw_info["server"]["mail_port"]."}INBOX", $username , $passwd); + } else { //assume imap + $mailauth = imap_open("{".$phpgw_info["server"]["mail_server"] + .":".$phpgw_info["server"]["mail_port"]."}INBOX", $username , $passwd); + } error_reporting(error_reporting() + 2); if ($mailauth == False) { @@ -56,4 +61,4 @@ return False; } } -?> \ No newline at end of file +?>