Emailing files

Status
Not open for further replies.

reports2

New Member
Messages
16
Reaction score
0
Points
1
Hi,
Is it possible to email a file (.txt) to my site and then run a script on that file to load data to a database automatically when the file arrives?

Jon
 

reports2

New Member
Messages
16
Reaction score
0
Points
1
Ive set my email forwarding to 'pipe to a program' to "/home/mysite/public_html/file_receiver.php" but nothing is happening. If I run the php through a browser window http://mysite.x10host.com/file_receiver.php it runs as requested - simple test of add a record (timestamp) to a database.

Ive added #!/usr/bin/php -q to line 1 of my code
Ive changed file_receiver/php permissions to 755

script still does not run

I cant help feeling its to do with the pipe address, but I have tried so many combinations.

Is there something obvious that I am not seeing?

Thanks in advance.
 
Status
Not open for further replies.
Top