hello,
I need to download all email attachment and store them in local pc for read later using php imap.
this download is cron job.
can anybody have idea how to deal with??
thank you
hello,
I need to download all email attachment and store them in local pc for read later using php imap.
this download is cron job.
can anybody have idea how to deal with??
thank you
you have tried what? and the result was?
hello, thank you
i tried imap_open to conenct mailbox and fetch mails its working fine.
to down load i use header('content--------') function of php and it give me dialogbox to save or open email attachment. like other download file when we click on any download link. i need automatic download all attachment and store in my defined local folder.
You've got two options as I see it:
Change your needs. Using nothing but the HTTP protocol talking to a standard web browser means that you can only send a single resource at a time. That's at the core of how HTTP itself works - one request to the server, (up to) one resource sent in reply.
For example, you could instead consider using the [man]Zip[/man] library of functions to download all of the attachments to a temporary location on the server, combine all of them in a single Zip archive (or [man]Bzip2[/man], or whatever archive/compression type you prefer) and send that single archive along to the user for downloading.
Use some sort of proprietary client plug-in (Flash, Java, etc.) to download the multiple files. As this is beyond the scope of these forums, I'll just leave it at that.
hello, bradgrafelman
thank you to reply, but how can i download all email attachment from different emails in mailbox in one zip.
i have to make it work on php.