note 31586 deleted from function.imap-check by didou
| From: | didou@php.net | Date: | Wed, 10 Dec 2003 17:35:16 +0000 |
| Subject: | note 31586 deleted from function.imap-check by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-61759@lists.php.net to get a copy of this message | ||
Note Submitter: Jason Uberig
----
FYI, the code in the previous example by:
albertof at deltasoft dot com dot ar
26-Mar-2002 12:49
... produced a $mbox variable that was NOT a resource and hence the remaining code generated errors.
One solution is to not use the '|| die()' syntax and instead to do something like:
$mbox = imap_open("{...}INBOX", "...user...", "...pass...");
if ( $mbox === false ) {
die ("Can't connect: " . imap_last_error() ."\n");
}
Hope this helps!
Jason.