note 30390 added to function.imap-subscribe

From: Date: Sun, 16 Mar 2003 16:11:24 +0000
Subject: note 30390 added to function.imap-subscribe
Groups: php.notes 
Request: Send a blank email to php-notes+get-45391@lists.php.net to get a copy of this message
Hello there! Sorry for my english For someone who need to use this function. I was trying to use it on my own imap server v2.0 but it didn't subscribe to any of the folders, so i try this method and it works. class imap { var $imaphost="{your.imap.host:143}"; var $imapuser="user"; var $imappass="pass"; } $imapm = new imap(); $mbox=imap_open($imapm->imaphost,$imapm->imapuser,$imapm->imappass); $bool=imap_subscribe($mbox,"{your.host:143}INBOX"); if ($bool) { print "Ok"; } else { print "No ok"; } -- http://www.php.net/manual/en/function.imap-subscribe.php http://master.php.net/manage/user-notes.php?action=edit+30390 http://master.php.net/manage/user-notes.php?action=delete+30390 http://master.php.net/manage/user-notes.php?action=reject+30390

« previous php.notes (#45391) next »