Parse email to get sender info, subject and attachements.
I need a php program to parse a eMail file. One php files will be included in my existing php file and will gives me multiple variable to get any email information. One will contain the sender address, the recipient address, reply-to address, and so on...
One variable must contain (or a fuction must return) the message itself (in html or in text, as availiable in email) A final array of strings will contain attachments file names.
The same or an other PHP file must makes me able to download each attachments, one by one.
If I have a large file, I want to be able to get the Name and e-mail address of sender, the subject and if there is attachment or not, without having to read the full file. It is to save time in the case the read file is not a local file. When new messages arrive, a bot will open all files to get sender, subject and a single bit to know if there is any attachment to store it in a database. If the whole file have to be transferred each time, it will take too much time and is't not good. If it is not possible to do so (if the whole file must be read or if you just prefer to don't do it this way), write it with your bid and it will not be required.
The sourse is a file. Emails received go to a folder and I will specify where the file is located on the linux system, then the program need to give me parsed data from it.
GPL is accepted.
Nothing is needed at this time to send email. However, if your interested to do some works on an e-mail sender, I may request later. So, you may offer something about it. Ii is NOT a requirement.
Must be complete within 7 days.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables)
GPL, GNU and 3rd party components are accepted, as long as it is legal to use it.
PHP version id 4.4.0
Run under a linux system.