We are working on a project in which we need to login to pop mail server and get the total emails count and delete them . We have the code but it is not working , I think either their is a little problem in our code or our server is blocking something so we need help from you , we are providing the code below so just tell us where the problem is and how to solve it and make a bid for your help . First demo code ************************************************** $mbox = imap_open("{[login to view URL]}INBOX", "{username}", "{password}"); or die("Can't connect: " . imap_last_error()); // imap_open("{[login to view URL]}",$username,$password)" echo "
# Mailboxes
\n"; $folders = imap_listmailbox($mbox, "{[login to view URL]}INBOX", "*"); echo $folders; if ($folders == false) { echo "Call failed
\n"; } else { echo "Succss"; while (list ($key, $val) = each($folders)) { echo $val . "
\n"; } } echo "
# Headers in INBOX
\n"; $headers = imap_headers($mbox); if ($headers == false) { echo "Call failed
\n"; } else { while (list ($key, $val) = each ($headers)) { echo $val . "
\n"; } } imap_close($mbox); ************************************************** we had filled each information correctly here and have done lots of testings by doing some changes in this part 110/pop3/notls by removing notls , pop3 etc.. but failed everything so what do you suggest the error is ? more details below...............
## Deliverables
Second demo code **************************************************** $mbox = imap_open("{[login to view URL]}", "username", "password"); or die("Can't connect: " . imap_last_error()); $check = imap_mailboxmsginfo($mbox); echo "Messages before delete: " . $check->Nmsgs . "
\n"; imap_delete($mbox, 1); $check = imap_mailboxmsginfo($mbox); echo "Messages after delete: " . $check->Nmsgs . "
\n"; imap_expunge($mbox); $check = imap_mailboxmsginfo($mbox); echo "Messages after expunge: " . $check->Nmsgs . "
\n"; imap_close($mbox); **************************************************** This is a email deletion code but it is also not working. In both the codes it is not displaying any thing on our screen neither any error nor any results don't know the reason. Our Server is apache. here is the imap settings of our server IMAP c-Client Version 2001 SSL Support enabled Kerberos Support enabled I hope I had provided all the info that you needs . So, while bidding please provide us the info how to solve this problem. We need to solve it urgently. 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
## Platform
Any