note 64244 added to function.imap-check
| From: | work dot dot at dot dot jaromedia dot dot dot dot dot de at osu1 dot php dot net | Date: | Mon, 10 Apr 2006 23:04:21 +0000 |
| Subject: | note 64244 added to function.imap-check | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-107731@lists.php.net to get a copy of this message | ||
I could successfully connect to the IMAP server using imap_open() but then had problems using
functions like imap_check().
The problem was the die() command used in the imap_check example:
<?php
$mbox = imap_open ("{your.imap.host:143}INBOX", "username",
"password")
|| die ("can't connect: " . imap_last_error());
?>
When doing it this way it worked perfectly:
<?php
$mbox = imap_open ("{your.imap.host:143}INBOX", "username",
"password");
if(!$mbox){
echo "can't connect: " . imap_last_error();
exit();
}
?>
----
Server IP: 217.13.201.10
Probable Submitter: 80.135.183.52
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.imap-check.php
Edit -- http://master.php.net/note/edit/64244
Del: integrated -- http://master.php.net/note/delete/64244/integrated
Del: useless -- http://master.php.net/note/delete/64244/useless
Del: bad code -- http://master.php.net/note/delete/64244/bad+code
Del: spam -- http://master.php.net/note/delete/64244/spam
Del: non-english -- http://master.php.net/note/delete/64244/non-english
Del: in docs -- http://master.php.net/note/delete/64244/in+docs
Del: other reasons-- http://master.php.net/note/delete/64244
Reject -- http://master.php.net/note/reject/64244
Search -- http://master.php.net/manage/user-notes.php