Page 1 of 1

cann't open a stream

Posted: Mon Jul 21, 2003 4:34 am
by navid
Hi

I can connect to pop3 server whit other methods, telnet IP_SERVER 110, with other WebMail services with my server values and I have connect from remote machine using OutLook Express with pop3 Account !!!!

i have a script and connect to mail account.
my script is right.
but i cann't use it for a all acount exist on a special mail server.

this is get this error "Couldn't open stream ".

please help me

Posted: Mon Jul 21, 2003 4:53 am
by cactus
Can you post the code you feel is causing the issue ?

Regards,

Posted: Tue Jul 22, 2003 10:38 pm
by navid
hi cactus
yes, here it is

===============
<PRE>
<?php
echo $username="My user name";
$password="My password";
$mbox = imap_open("{My mx server:110}INBOX", "$username", "$password");
if ($hdr = imap_check($mbox)) {
echo "Num Messages " . $hdr->Nmsgs;
}
else {
echo "failed";
}
?>
</pre>
=============
this script done by successfully on for a lot of different mail account.
but this is cannot connect to one special mail server.
i tested it to different mail account in this mail server but all of them cannot connect to the inbox.

please help me
thank you