<?php
$server = "{karthikraj}";
$mailbox = "INBOX";
$mbox = imap_open("$server$mailbox", "karthik", "parthi");
if(!$mbox)
echo "Connect to IMAP server failed\n<br>";
if(imap_subscribe($mbox, $server."send-mail"))
echo "Could not subscribe.\n<br>";
$list = imap_listsubscribed($mbox, $server.$mailbox, "*");
for($x = 0; $x < count($list); $x++)
echo "list[$x]:".$list[$x]."\n<br>";
imap_close($mbox);
?>
when i am using this program i get a message could not subscribe. Do i need to give permission to the user, If so pls tell how to give permission.