note 99596 added to function.imap-open
| From: | anthony2009 at ns dot sympatico dot ca | Date: | Wed, 25 Aug 2010 19:34:45 +0000 |
| Subject: | note 99596 added to function.imap-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172067@lists.php.net to get a copy of this message | ||
// You can break out the variables for $mailserver, $port, $user and
// $pass without passing brackets into functions this way. Be sure to use
// the dots to append connection strings, ie "stuff". $variable ."STUFF"
// otherwise will go to imap_open with wrong variable type. :)
$mailserver="webmail.seasidehighspeed.com";
$port="110/pop3";
$user="aj";
$pass="remax01";
if ($mbox=imap_open( "{" . $mailserver . ":" . $port . "}INBOX",
$user, $pass ))
{ echo "Connected\n";
$check = imap_mailboxmsginfo($mbox);
echo "Date: " . $check->Date . "<br />\n" ;
echo "Driver: " . $check->Driver . "<br />\n" ;
echo "Unread: " . $check->Unread . "<br />\n" ;
echo "Size: " . $check->Size . "<br />\n" ;
imap_close($mbox);
} else { exit ("Can't connect: " . imap_last_error() ."\n"); echo
"FAIL!\n"; };
----
Server IP: 216.235.13.26
Probable Submitter: 69.60.69.69
----
Manual Page -- http://www.php.net/manual/en/function.imap-open.php
Edit -- https://master.php.net/note/edit/99596
Del: integrated -- https://master.php.net/note/delete/99596/integrated
Del: useless -- https://master.php.net/note/delete/99596/useless
Del: bad code -- https://master.php.net/note/delete/99596/bad+code
Del: spam -- https://master.php.net/note/delete/99596/spam
Del: non-english -- https://master.php.net/note/delete/99596/non-english
Del: in docs -- https://master.php.net/note/delete/99596/in+docs
Del: other reasons-- https://master.php.net/note/delete/99596
Reject -- https://master.php.net/note/reject/99596
Search -- https://master.php.net/manage/user-notes.php