Receive attachments of email in PHP.
I need a PHP script to read my email account [I must be able to change the email account] and get the email addresses and the attached file name and place it into an array and save it in a text file name ([url removed, login to view]) one line at a time. [Attached is a text file format for a better example.] The attached email file should be placed in a folder of my choice. [Note: I must be able to change the folder location on my domain server for these attachments.] [I have some basic scripts of this function if needed.]
Their should be a location in the script to except specifiely one or more types of files [Ex: mp3, wav, text, exe, pdf, etc.] or place an asterisk “*” to allow the script to receive any file types. The script should email the sender a message;” Your file (s) have been received successfully”. [Note: I must be able to edit this message.] (On the web page, the sender will be given instructions on the type of file they can send.)
There should be a location to set the limit on the file size for all type files. The script should email the sender a message; “Your file exceed the allowable limit”. [Note: I must be able to edit this message.] (On the web page, the sender will be given instructions on the size of file they can send.)
Note: Annotation of the script functions must be included!
Testing the script:
If you setup the script on your server for your email account [Note: For testing, we will use a small wav file with a size of 50kb (Limit set to 60kb)], I must be able to email you this file. I must get the email message;” Your file (s) have been received successfully”. You provide me a location to download the file from it or play it in a web page. Also I will attempt to email you a file that will exceed the allowable limit and/or different type of file. I must get the email message; “Your file exceed the allowable limit or wrong file type”.
Upon the successful testing of the script, the agreed price will be paid in full. Contact me if more clarification is needed.