Thanks Eric

The code in that link is pretty much what I am using though I have now
managed to get it to send an email with an empty attachment.

I believe the path may be wrong - would I still get the attachment if I have
the wrong path value for the following line of code?

$fileatt = "/httpdocs/clients/davehann/order11.txt"; // Path to the file  

Thanks

Paul


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Éric
Thibault
Sent: 30 August 2006 18:54
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Creating a text file on server andemailing
attachment

Take a look at http://codewalkers.com/getcode.php?id=231

but not tested!

A+

Paul Steven a écrit :
> 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
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> 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
>
>   


-- 
===============================================================

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===============================================================

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia
de confidencialidad
<http://www.rec.ulaval.ca/lce/securite/confidentialite.htm>

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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