Welcome Guest, Not a member yet? Register   Sign In
New IMAP library!
#1

[eluser]Iverson[/eluser]
I wrote a library to perform some basic Imap functions. I saw some throughout the forum but they didn't seem to work right for me. This can be used with Gmail, Yahoo, or your own shared hosting email setup (as long as you have server access). The main reason I wrote is pretty cool if I must say so myself Smile I don't have shell access on my server but I wanted people to be able to email me and have my PHP code take those emails and do stuff with them. Well without using a forward script, I'm using this library in a PHP cron job that checks for new mail and takes the date, subject, body, etc. from the email and store it in a database as I please. The functions I have right now are:

- connect()
- current_mailbox()
- msg_count()
- delete()
- mailbox_info()
- switch_mailbox()
- search()
- msg_list()


The functions are quite simple to understand but you will probably have to read up on the different flags that PHP's Imap functions accept. Other than that, let me know if you have any problems. Enjoy!

http://www.gandylabs.com/ci/imap


Messages In This Thread
New IMAP library! - by El Forum - 04-06-2009, 12:36 PM
New IMAP library! - by El Forum - 04-06-2009, 01:51 PM
New IMAP library! - by El Forum - 04-06-2009, 01:56 PM
New IMAP library! - by El Forum - 04-06-2009, 02:11 PM
New IMAP library! - by El Forum - 04-06-2009, 02:50 PM
New IMAP library! - by El Forum - 04-06-2009, 03:12 PM
New IMAP library! - by El Forum - 04-06-2009, 03:38 PM
New IMAP library! - by El Forum - 04-06-2009, 04:44 PM
New IMAP library! - by El Forum - 04-06-2009, 05:03 PM
New IMAP library! - by El Forum - 04-06-2009, 05:38 PM
New IMAP library! - by El Forum - 04-07-2009, 09:11 AM
New IMAP library! - by El Forum - 06-28-2009, 09:36 AM
New IMAP library! - by El Forum - 06-29-2009, 09:50 AM
New IMAP library! - by El Forum - 09-28-2009, 07:58 AM
New IMAP library! - by El Forum - 09-28-2009, 08:18 AM
New IMAP library! - by El Forum - 09-28-2009, 08:29 AM
New IMAP library! - by El Forum - 09-28-2009, 04:16 PM
New IMAP library! - by El Forum - 09-28-2009, 06:10 PM
New IMAP library! - by El Forum - 12-02-2009, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB