note 26529 deleted from function.imap-uid by nlopess
| From: | nlopess@php.net | Date: | Wed, 19 Jul 2006 10:38:38 +0000 |
| Subject: | note 26529 deleted from function.imap-uid by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114922@lists.php.net to get a copy of this message | ||
Note Submitter: thomas at bytefreak dot de
----
RFC1939 defines CRLF for a newline.
you should use code like this:
fputs($fp, "USER ".$account."\r\n");
$buf = fgets($fp, 1024);
fputs($fp, "PASS ".$password."\r\n");
$buf = fgets($fp, 1024);
fputs($fp, "UIDL ".$message_number."\r\n");
$retval=fgets($fp, 1024);
fputs($fp, "QUIT\r\n");
thomas