|
-
Aug 8th, 2007, 03:36 PM
#1
Thread Starter
Hyperactive Member
Read Email With PHP
I am wondering how hard this is to implement-
Basically want to read the email (set a cron for every 5 minutes to a half hour not sure yet) but then just read the email, parse it out so its all pretty for the db, and then put it into my database.
- Not sure if it is POP3, IMAP, or what. Very new to this idea.
-
Aug 10th, 2007, 08:26 AM
#2
Hyperactive Member
Re: Read Email With PHP
I have actually done the exact opposite. Have an e-mail in a db then send it out using CRON.
I am going to assume you have knowledge about php/mysql.
Anyway, how I would approach is google for a PHP POP3/IMAP client. There is probably a lot out there, and you only need the basic functionality of connecting to the mail server and downloading the e-mail. The GUI implementation doesn't matter. So finding a base mail client is best. That gets your half way. Be sure to make the app executable from the shell, so you are going to need text output instead of html. I would also suggest you log your errors to the db or a text file. Beside, that check your mail from the POP3 client you need to select which mail you was to parse then save it to the db. Once that is done, make your CRON job. If you really want to get fancy then you can do a php/gui backend.
-
Aug 10th, 2007, 08:31 AM
#3
Thread Starter
Hyperactive Member
Re: Read Email With PHP
No need for a gui backend, not gonna try and re-invent the wheel with email. I guess I can forward my mail to a Gmail or something of that sort, would that be efficient or even safe to do ? ( security wise )
Doesn't seem too impossible
-
Aug 16th, 2007, 06:27 AM
#4
Addicted Member
Re: Read Email With PHP
hmm.. Why don't you read IMAP functions reference at PHP documentation site?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|