[PHP] Emailing attachments upload to a form

2001-12-11 Thread Ben Clumeck

When I use the script to upload an attachment to my form it does not email
the attachment.  I am using the mail() function to email the results of the
form to me. Is there any other code I need to put in my mail() function to
make this work, if so where would I put it?

I am currently using the following code:
?
mail ([EMAIL PROTECTED], Form Results, Name: $name\nMessage:
$message\nAttachment: $attachment, From: $fromemail);
?

Thanks,

Ben

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Emailing attachments upload to a form

2001-12-10 Thread Ben Clumeck

When I use the script to upload an attachment to my form it does not email
the attachment.  I am using the mail() function to email the results of the
form to me. Is there any other code I need to put in my mail() function to
make this work, if so where would I put it?

I am currently using the following code:
?
mail ([EMAIL PROTECTED], Form Results, Name: $name\nMessage:
$message\nAttachment: $attachment, From: $fromemail);
?

Thanks,

Ben


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] emailing attachments

2001-11-11 Thread Don

Hi,

I have a class that allows me to send e-mail with an attachment.  I have a form that 
gathers information and I would like to allow the user to attach a file from his local 
drive.  Is there a PHP routine that allows the user to browse his drive and choose a 
file?

Thanks,
Don



RE: [PHP] emailing attachments

2001-11-11 Thread Martin Towell

it's HTML
input type=file name=

-Original Message-
From: Don [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 3:37 PM
To: php
Subject: [PHP] emailing attachments


Hi,

I have a class that allows me to send e-mail with an attachment.  I have a
form that gathers information and I would like to allow the user to attach a
file from his local drive.  Is there a PHP routine that allows the user to
browse his drive and choose a file?

Thanks,
Don



Re: [PHP] emailing attachments

2001-11-11 Thread Don

Thanks.  I already tried that which allowed me to browse but...

In my form, I have:
input type=file name=filename

My form line is :
form method=POST name=apply action=result.html ENCTYPE=multipart/form-data

Yet when I submit, and check the value of $filename in my PHP script, it is empty???  
Therefore, the attachment in my mail class
ends up being empty and not sent!!!


 it's HTML
 input type=file name=

 -Original Message-
 From: Don [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 12, 2001 3:37 PM
 To: php
 Subject: [PHP] emailing attachments


 Hi,

 I have a class that allows me to send e-mail with an attachment.  I have a
 form that gathers information and I would like to allow the user to attach a
 file from his local drive.  Is there a PHP routine that allows the user to
 browse his drive and choose a file?

 Thanks,
 Don



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]