I have a photo sharing website in development and want to be able to allow users to add photos and video by email attachment. I have email addresses for the site (hosted with goDaddy). I also have a LAMP CentOS application server running on Amazon Web Services EC2 that processes files uploaded via my web-based uploads page, so would like to use the same PHP scripts to process files sent as email attachments. My first questions are -
1) To get the attachments to my application server would I use PHP's IMAP/POP functions to get the emails from goDaddy? Periodically check for new emails?
2) Is it as easy as setting up a catch-all email address and giving users a unique email to send photos to (eg. [email protected] and give each user [email protected]) Then look for emails with the .photos bit and use the username bit to determine who uploaded the photos...?
What other steps would I need to implement? Any other advice about how best to achieve this is welcome