anzeige

IMAP Kann stream nicht öffnen


Seite: 1
Autor Beitrag
Lars282
24.09.08 - 12:21:27 Uhr

Hey!
Habe folgenden Code:

  1. <?php  
  2. $mailbox '{mail.hosting-agency.de}INBOX';  
  3. $username 'm015917-catchall';  
  4. $password '***********';  
  5.  
  6. $connection imap_open($mailbox,$user,$pass) or die(imap_errors() . 'Connection Faliure!');  
  7.  
  8. [...]  


Und beim Ausführen bekomme ich folgendes zurück:

Warning: imap_open() [function.imap-open]: Couldn't open stream {mail.hosting-agency.de}INBOX in /home/u0056353138/public_html/Webmail.php on line 6
ArrayConnection Faliure!


Was bedeutet das, also was ist falsch?

Lieben Dank,
Lars
SammysHP
24.09.08 - 14:00:01 Uhr

Zum einen brauchst du einen bestätigten Account (Suche!), damit ein Zugriff auf andere Server möglich ist.
Allerdings ist, so weit ich weiß, die imap-Funktion bei Pytal sowieso deaktiviert.
Tblue
24.09.08 - 14:35:35 Uhr

Das Script scheint nicht bei Pytal zu liegen:
in /home/u0056353138/public_html/Webmail.php on line 6

Zum Problem:
Ersteinmal passen deine Variablennamen nicht, zweitens gibt imap_errors() ein Array und keinen String zurück.

Probiere es doch einmal so:
  1. <?php    
  2. $mailbox '{mail.hosting-agency.de}INBOX';    
  3. $username 'm015917-catchall';    
  4. $password '***********';    
  5.  
  6. $connection imap_open($mailbox,$username,$password) or die('Connection failure caused by the follwing errors:'."\n".' o '.join("\n o "imap_errors()));    
  7. ?>  


Bei mir kommt dann:
  1. Warning: imap_open() [/phpman/function.imap-open.html]: Couldn't open stream {mail.hosting-agency.de}INBOX in /home/tilman/tmp/temp.php on line 6  
  2.  
  3. Call Stack:  
  4.     0.0003      55296   1. {main}() /home/tilman/tmp/temp.php:0  
  5.     0.0004      55640   2. imap_open('{mail.hosting-agency.de}INBOX', 'm015917-catchall', '***********') /home/tilman/tmp/temp.php:6  
  6.  
  7. Connection failure caused by the follwing errors:  
  8.  o Retrying CRAM-MD5 authentication after Invalid response  
  9.  o Retrying CRAM-MD5 authentication after Invalid response  
  10.  o Can not authenticate to IMAP server: Invalid response  
Lars282
24.09.08 - 15:51:35 Uhr

Ups, ja, lag an den falschen Variablennamen ... hatte die öfters geändert und dann wohl was vermischt

Danke!
Seite: 1

- Obige Beiträge stellen keine Äußerung oder Meinung von Pytal oder dessen Betreiber dar -