Quote:
Today at 06:13 AM noppid said this in Post #251
PHP Info shows IMAP on my server yet I get the IMAP function not defined error.
Configure Command '--with-imap'
IMAP c-Client Version 2001
SSL Support enabled
Kerberos Support enabled
Any ideas?
Thanks
EDIT: After playing with it, it throws this error at line 618 when an invalid user name is put in...Is this a bug?
EDIT: After playing some more, we added the @ to the IMAP function calls at line 618 and the error is no longer thrown, the login screen returns as expected.
if ($opt=="POP3") $mbox = @imap_open("{".$host.":110/pop3}".urldecode($folder), $user, $pass);
elseif ($opt=="IMAP") $mbox =@ imap_open("{".$host."}".$folder, $user, $pass);
|
Good example of how different servers with different setups need minor changes to the code. The code should work with most servers. For some reason that is beyond my skill, some servers have their own idiosyncrasies. Glad to know it works in the end.