Find Jobs
Hire Freelancers

Solve a little PHP problem

$10-15 USD

Completed
Posted over 20 years ago

$10-15 USD

Paid on delivery
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
Project ID: 3063088

About the project

5 proposals
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$7 USD in 2 days
5.0 (7 reviews)
1.8
1.8
5 freelancers are bidding on average $8 USD for this job
User Avatar
See private message.
$6.80 USD in 2 days
4.9 (108 reviews)
5.2
5.2
User Avatar
See private message.
$12.75 USD in 2 days
5.0 (4 reviews)
3.2
3.2
User Avatar
See private message.
$8.50 USD in 2 days
4.8 (7 reviews)
2.3
2.3
User Avatar
See private message.
$4.25 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of INDIA
India
5.0
162
Member since Jun 12, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.