php - Save incoming email to database -


i have following mysql database structure:

  id |            |     content     |    attachment   | datestamp  ---------------------------------------------------------------------   1  | sender@mail.com | [blob - 4,6 kb] | img20120605.jpg | now() 

i automatically save incoming emails database , copy image attachment server. possible? there library or tool me achieve this?

1st create db

2nd u need checkit mails imap (google: php imap recent mails)

3rd set script in crontab

4th u store whole mail in blob content - not store attachment separatly

5th u may load db whole letter , work it


Comments