|
Attach files to your form mail using PHP
If you are going to use a PHP form to get the data from user plus a file upload field to attach a file you're welcome.
First create an html form and get the following information from user:
- Email address and personal information.
- A file upload field to get the local address of file.
Now set the action of this form to "signup.php" with the POST method and set the value to your email address.
Example :
<form name=a method=POST action="signup.php" enctype="multipart/form-data" autocomplete=off>
<input type="hidden" name="to" value="your email address">
Now use the following code as "signup.php" :
|