Re: trouble trying to connect to gmail server.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



*Hi Cris,*

*I have tried to use:*

*$mbox = imap_open('{**pop.gmail.com:995/pop3}INBOX<http://pop.gmail.com:995/pop3%7DINBOX>
**<**http://pop.gmail.com:995/pop3%7DINBOX**>',*

*> '<my_login>@**gmail.com**', <my_pass>');*

 *As you suggest but it didn't work. *



*The time out is not for the function:*

*imap_num_recent($mbox);*

*It is for the function:*

*imap_open('{pop.gmail.com:995/pop3}INBOX', '<my_login>@**gmail.com**',
<my_pass>'**);*



*In order to confirm that, I have created a new account with just 5 e-mails
and I have gotten the same problem.*

*And... I also check that using the code without the function*:
imap_num_recent($mbox); *as* *bellow:*

*$mbox = imap_open('{pop.gmail.com:995/pop3}INBOX','fhgeneroso@xxxxxxxxx',
'O3S/4o1*');*

*print_r(imap_alerts());*

*print_r(imap_errors());*



*I got the same message error:*

*Warning**: imap_open(): Couldn't open stream
{pop.gmail.com:995/pop3}INBOXin c:\arquivos
de programas\easyphp1-8\www\index.php on line 4

Fatal error: Maximum execution time of 30 seconds exceeded in c:\arquivos de
programas\easyphp1-8\www\index.php on line 4

Notice: (null)(): POP3 connection broken in response (errflg=2) in
Unknownon line
0*

* *

*So I have tried to use the function* *set_time_limit(0);* *to suppress  the
time out but it still didn't work:*

*set_time_limit(0);*

*$mbox = imap_open('{pop.gmail.com:995/pop3}INBOX','fhgeneroso@xxxxxxxxx',
'O3S/4o1*');*

*print_r(imap_alerts());*

*print_r(imap_errors());*



*I got these errors:*

*Warning**: imap_open(): Couldn't open stream
{pop.gmail.com:995/pop3}INBOXin c:\arquivos
de programas\easyphp1-8\www\index.php on line 4
Array ( [0] => POP3 connection broken in response )*



*Looks like I have reached the gmail server but for same configuration or
network issue, I'm not able to receive the answer. *

*Any suggestion?*

* *

*Tks.*


On 9/24/07, Chris <dmagick@xxxxxxxxx> wrote:
>
>
> > Array ( [0] => Host not found (#11001): pop3.gmail.com )
>
> So pop3.gmail.com doesn't exist.
>
> > <?
> > $mbox = imap_open('{pop.gmail.com:995/pop3}INBOX<
> http://pop.gmail.com:995/pop3%7DINBOX>',
> > '<my_login>@gmail.com', <my_pass>');
> > print_r(imap_alerts());
> > print_r(imap_errors());
> > $num_mens_not_read = imap_num_recent($mbox);
> > imap_close($mbox);
> > ?>
> >
> > I get these errors:
> >
> > Warning: imap_open(): Couldn't open stream {
> > pop.gmail.com:995/pop3}INBOX<http://pop.gmail.com:995/pop3%7DINBOX>in
> > c:\arquivos de programas\easyphp1-8\www\index.php on line 4
> > Fatal error: Maximum execution time of 30 seconds exceeded in
> c:\arquivos de
> > programas\easyphp1-8\www\index.php on line 4
> > Notice: (null)(): POP3 connection broken in response (errflg=2) in
> Unknown
> > on line 0
> >
> >
> > This second code looks like ok for me, but for some reason I get this
> time
> > out. Do you have any idea what's going on? Did I miss some
> configuration?
>
> Line 4 is
>
> $num_mens_not_read = imap_num_recent($mbox);
>
> so it's taking too long to work out how many are recent.
>
> How many unread messages are there in your account? How many messages in
> total?
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux