My english is bad, but see the code:

$mbox = imap_open ("{localhost/pop3:110}INBOX", "user_id", "password");
The only way I could open a IMAP or POP3 conection into my server is, I hope
it helps  you$MAILSERVER="{mail.midominio.cl:110/pop3/notls}"; //Para POP3
$MAILSERVER="{mail.midomino.cl:143/imap/notls}"; //Para IMAP$mbox =
@imap_open ($MAILSERVER,$user,$pass) or die ("No abrio");
----- Other Complete Example For Imap ------
$mbox = imap_open ("{localhost:143}", "username", "password");

echo "<p><h1>Mailboxes</h1>\n";
$folders = imap_listmailbox ($mbox, "{your.imap.host:143}", "*");
if ($folders == false)
    echo "Call failed<br>\n";
else
    while (list ($key, $val) = each ($folders))
        echo $val . "<br>\n";

echo "<p><h1>Headers in INBOX</h1>\n";
$headers = imap_headers ($mbox);
if ($headers == false)
    echo "Call failed<br>\n";
else
    while (list ($key, $val) = each ($headers))
        echo $val . "<br>n";

imap_close ($mbox);

And you can look the manual, but this code is from the manual, have a loot
of examples ;)
----------------------------------------------            Alberto Ferrer
[EMAIL PROTECTED]
http://www.barrahome.org----------------------------------------------Syntax
Error in KITCHEN.H: COFFEE not found.
"Joe111" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Hi
> I have been trying to get to know the imap functions for checking pop3
email
> account with php. i have had absolutely no luck. just cant get the script
to
> connect to the server.
> here is a sample:
>
> <?php
> $mbox = imap_open ("{mail.hot.ee:110}", "pop3testing", "testing");
>
> if(!$mbox){echo"offline";}
> else{echo "online";}
>
> imap_close($mbox);
> ?>
>
> it just loads and loads.... doesnt even give an error. could somebody
please
> look into it and see whats wrong. the account on hot.ee actually exists
> (un:pop3testing, pw:testing). it is an estonian free e-mail service
> provider. supports pop3 and the server should be mail.hot.ee, because
> outlook checks e-mails from mail.hot.ee without any problems.
> help please :)
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to