Connecting Tech Pros Worldwide Help | Site Map

automatic attachment uploads

r6uji7
Guest
 
Posts: n/a
#1: Aug 23 '05
hello,

we have a website (with php pages) and has a particular page that reads
a csv file and displays the data on that page.

since we work and the firewall often prevents the ftp access, what we
want to achieve is to be able to email the csv files (as attachments)
to a set address (say files@domain.com) and what we want is to have
some sort of php program/file that will pick up these attachments and
put it in the required directory.

can someone suggest a way out please?

regards...

ZeldorBlat
Guest
 
Posts: n/a
#2: Aug 23 '05

re: automatic attachment uploads


What's wrong with an HTTP upload? Probably a lot easier to
implement....

But if you really want to do it with email attachments, check out the
IMAP functions, which, contrary to their name, can also handle POP3 and
NNTP:

http://www.php.net/imap

Jerry Stuckle
Guest
 
Posts: n/a
#3: Aug 24 '05

re: automatic attachment uploads


r6uji7 wrote:[color=blue]
> hello,
>
> we have a website (with php pages) and has a particular page that reads
> a csv file and displays the data on that page.
>
> since we work and the firewall often prevents the ftp access, what we
> want to achieve is to be able to email the csv files (as attachments)
> to a set address (say files@domain.com) and what we want is to have
> some sort of php program/file that will pick up these attachments and
> put it in the required directory.
>
> can someone suggest a way out please?
>
> regards...
>[/color]

Set up your mail server to forward the email address via a pipe to the PHP
program. Then process the incoming mail in the PHP program.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Closed Thread