Emailing attachments upload to a form
| From: | Ben Clumeck | Date: | Tue, 11 Dec 2001 18:59:14 +0000 |
| Subject: | Emailing attachments upload to a form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-77329@lists.php.net to get a copy of this message | ||
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 ("me@mydomain.com", "Form Results", "Name: $name\nMessage:
$message\nAttachment: $attachment", "From: $fromemail");
?>
Thanks,
Ben