[PHP] php imap functions problem
Hello NG Please excuse my bad english because I come from austria. I hope you understand me... I have searched in the NG and in internet and don't found an answer to my php problem: When I use the imap functions with php all looks like good but when I will get the body or structure from an email I get an error. my Code looks like this: - $mbox = imap_open( {localhost:143/imap/notls}INBOX , username , password , OP_HALFOPEN ); $structure = imap_fetchstructure($mbox, msgnum ); The Error ( Warning ): -- Warning: imap_fetchstructure(): Bad message number in (...) on line (...) I dont't think that the Message number is really the problem because i tested also other numbers. I hope anybody can help me! Thanks Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php imap functions problem
From: Markus H [EMAIL PROTECTED] $structure = imap_fetchstructure($mbox, msgnum ); Warning: imap_fetchstructure(): Bad message number in (...) on line (...) Is msgnum a constant or do you mean to have $msgnum, i.e. a variable? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php imap functions problem
John Holmes wrote: From: Markus H [EMAIL PROTECTED] $structure = imap_fetchstructure($mbox, msgnum ); Warning: imap_fetchstructure(): Bad message number in (...) on line (...) Is msgnum a constant or do you mean to have $msgnum, i.e. a variable? ---John Holmes... Yes, I mean thats msgnum is a Variable . I forgott the $ ... It is dynamically inserted from the header list. Because i'd like to write an webmail system. The Folderlist and the Header listing are working but only the displying of the real E-Mail don't works. I have found in Internet that there could be a problem with an c-client or an file called php_imap.c but I don't undestand this. Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php