Grab/save IMAP email attachments in PHP

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

The desired budget for this project is $50. There's open source code that does what we need so it should be a quick project if you know what you're doing. :) Bids at the high end of the range will be disregarded.

Attached is a php snippet that we're using to parse IMAP emails and save the header/subject/message to a table.

This assignment is to add code that will identify the presence of attachments, isolate the attachment's file name and data, and save it to the server.

All you have to do is add code that will do the following:

1. Search the $structure object for attachments

2. Check mime type and only allow the following: jpeg, gif, png, pdf, txt

3. For each attachment, create a variable that will contain the path and filename for saving the attachment. (We will provide the path and filename protocol later, you can simply insert a placeholder.)

4. Write the attachment to the server using the path/filename variable.

You don't have to worry about anything else.

Important note!! You will not be able to test this on our server, so you can do one of the following: (1) test it using your server and email account, or (2) deliver the code untested and we will do it here, working with you to debug.

PHP

Project ID: #15067843

About the project

9 proposals Remote project Active 6 years ago

Awarded to:

cherrystuart83

yes we can do it. Relevant Skills and Experience php Proposed Milestones $50 USD - as we discuss

$50 USD in 3 days
(58 Reviews)
5.1

9 freelancers are bidding on average $94 for this job

DigiWhizz

Hey, I am James, a PHP and full stack developer based in London. Your project falls within my skill set and would like to discuss further. Relevant Skills and Experience: Expert in PHP Proposed Milestones: 155 - Grab/s More

$155 USD in 7 days
(44 Reviews)
7.5
manjeet2017

Hi, I’m Manjeet. To check my strength, kindky visit my freelancer account and check my ratings. I'm assuring you for the most SEO friendly website and most Responsive Design. Relevant Skills and Experience WordPress, More

$155 USD in 3 days
(81 Reviews)
5.6
OneStopTech

A proposal has not yet been provided

$137 USD in 30 days
(55 Reviews)
5.5
suriyams

Hi, I have good experience in web development. Message me so we can discuss further regarding the project requirements. See you soon in chat. Thanks

$48 USD in 3 days
(18 Reviews)
3.9
KeyboardSolution

Hello project owner, I am ready to give you best quality work. ***Available to provide you the work on the given time frame. I have good experience in it. Looking for your response. Thanks!! Relevant Skills and Expe More

$40 USD in 3 days
(7 Reviews)
2.8