I am hoping some kind person will help me figure this one out.

Making a little app to design t-shirts online and want to allow the user to
send the design data to the client via a text file that the client can then
load in at their end.

I have got the code working to create a text file on my server with the
correct data. I just cannot figure out how to get the PHP to attach this
file.

So say the text file is called "design1.txt" and is located in the same
folder on my server as the flash movie.

It is the following code I believe is not working correctly


Code:


$newfile = $_POST['filename'];
$fileatt = $_POST['filename']; // Path to the file                 
$fileatt_type = "application/octet-stream"; // File Type 
$fileatt_name = $_POST['filename']; // Filename that will be used for the
file


I have even tried hard coding the filename variables as follows.


Code:


$fileatt = "http://www.mediakitchen.co.uk/clients/davehann/order11.txt";;
$fileatt_type = "application/octet-stream"; // File Type 
$fileatt_name = "order11.txt";



I am really struggling to solve this so would appreciate any help. The email
is getting sent ok and the text file is being created on the server but no
attachment is being sent with the email.

Thanks

Paul

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to