-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 10 Apr 2004 23:42, Pembo13 wrote:
> Well I've setup a reltively simple code block:
>
> function mailboxmsginfo($mailbox='INBOX', $username, $password) {
> $username = $username."@dalive.com";
> $imap_stream = "{localhost:143/notls}".$mailbox;
> $mbox = imap_open($imap_stream, $username, $password)
> or die("can't connect ($username with $password): " .
> imap_last_error());
> $check = imap_mailboxmsginfo($mbox);
> imap_close($mbox);
>
> return $check;
> }
OK, can you try this:
<?php
$mbox = imap_open('{127.0.0.1:143/notls)INBOX', 'user', 'pass')
or die(imap_last_error());
echo("Connected..\n");
imap_close($mbox);
?>
(If courier isn't compiled with SSL/TLS support, drop the '/notls'.)
Also have a look at the docs/comments here:
<http://www.php.net/manual/en/function.imap-open.php>
> Client side I get (from imap_last_error): Can not authenticate to IMAP
> server: Authentication failed.
>
> Serverside, from Courier's logs i see the commands that differ from what
> normally comes from my mail clients. The normal mail client commands are
> of the format:
>
> imapd: Connection, ip=[::ffff:192.168.100.11], command=LOGIN
> imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], username=myusername
> imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], password=mypassword
> imapd: LOGIN, [EMAIL PROTECTED], ip=[::ffff:192.168.100.11],
> protocol=IMAP
>
> while the commands as a result of the PHP funcion are of the format:
>
> imapd: Connection, ip=[::ffff:192.168.100.11], command=LOGIN
> imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], command=AUTHENTICATE
> imapd: LOGIN: DEBUG: ip=[::ffff:192.168.100.11], command=LOGOUT
> imapd: LOGOUT, ip=[::ffff:192.168.100.11]
hrmm..no.. anyone? 8)
Elfyn
- --
Elfyn McBratney, EMCB
mailto:[EMAIL PROTECTED]
http://www.emcb.co.uk/
PGP Key ID: 0x456548B4
PGP Key Fingerprint:
29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4
"When I say something, I put my name next to it." -- Isaac Jaffee
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
<< ~ Linux london 2.6.5-emcb-241 #2 i686 GNU/Linux ~ >>
>> ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAeJowaIgMKkVlSLQRAvAhAKCV+oLhJbjE6IrsPEA3SAq4+1cNHACfdu4t
LHJsC3JzuVKeR8FeI0J8oWY=
=fmBO
-----END PGP SIGNATURE-----
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php