Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]IMAP o2 - problem
aras785
post
Post #1





Grupa: Zarejestrowani
Postów: 859
Pomógł: 177
Dołączył: 29.10.2009

Ostrzeżenie: (0%)
-----


Cześć.

Próbuje się zalogować za pomocą imap do poczty na o2 i niestety coś nie działa (kręci się i nie chce skończyć).
Mój kod:

  1. $server = "poczta.o2.pl";
  2. $uzytkownik = "login@o2.pl";
  3. $haslo = "haslo";
  4.  
  5. $mbox = imap_open("{".$server.":110/pop3}INBOX", $uzytkownik, $haslo);
  6. var_dump(imap_num_msg($mbox));
  7.  


Proszę o pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 5)
ohm
post
Post #2





Grupa: Zarejestrowani
Postów: 623
Pomógł: 144
Dołączył: 22.12.2010

Ostrzeżenie: (0%)
-----


Sprawdź co zwraca imap_mailboxmsginfo($mbox)
Go to the top of the page
+Quote Post
aras785
post
Post #3





Grupa: Zarejestrowani
Postów: 859
Pomógł: 177
Dołączył: 29.10.2009

Ostrzeżenie: (0%)
-----


Cytat(ohm @ 6.06.2016, 13:16:15 ) *
Sprawdź co zwraca imap_mailboxmsginfo($mbox)


  1. object(stdClass)#1 (8) {
  2. ["Unread"]=>
  3. int(18)
  4. ["Deleted"]=>
  5. int(0)
  6. ["Nmsgs"]=>
  7. int(18)
  8. ["Size"]=>
  9. int(263078)
  10. ["Date"]=>
  11. string(36) "Mon, 6 Jun 2016 07:19:40 -0400 (EDT)"
  12. ["Driver"]=>
  13. string(4) "pop3"
  14. ["Mailbox"]=>
  15. string(64) "{poczta.o2.pl:110/pop3/tls/user="login@o2.pl"}INBOX"
  16. ["Recent"]=>
  17. int(18)
  18. }


?smile.gif
Go to the top of the page
+Quote Post
c3409394
post
Post #4





Grupa: Zarejestrowani
Postów: 13
Pomógł: 4
Dołączył: 3.06.2016

Ostrzeżenie: (0%)
-----


cco wiec sie kreci?
Go to the top of the page
+Quote Post
aras785
post
Post #5





Grupa: Zarejestrowani
Postów: 859
Pomógł: 177
Dołączył: 29.10.2009

Ostrzeżenie: (0%)
-----


np. to
  1. imap_num_msg($mbox);


?

questionmark.gif smile.gif
Go to the top of the page
+Quote Post
Pyton_000
post
Post #6





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

Ostrzeżenie: (0%)
-----


Kręci bo zapewne pobiera wszystkie wiadomości wink.gif

Zmień protokół na IMAP i dostosuj port, a potem przetestuj.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 03:39