To upload the attachment in HTML page we will be requiring phpmailer file
1. Edit the contact form code:
Include the following code in contact-form page
2. Download the phpmailer file from the following link:
https://sourceforge.net/projects/php...e=typ_redirect
3. In phpmiailer.fe file include the recipient email address
This how we can upload an attachment in html form
1. Edit the contact form code:
Include the following code in contact-form page
Code:
<div id="mydiv"> <form method="POST" action="phpmailer-fe.php" enctype="multipart/form-data"> <table width="500" cellpadding="3" cellspacing="0"> <tr> <td class="colone"><font color="white">Upload a File</td> <td class="coltwo"> </td> <td class="colthree"><input type="file" name="file1" size="50"></td> </tr> </table>
https://sourceforge.net/projects/php...e=typ_redirect
3. In phpmiailer.fe file include the recipient email address
This how we can upload an attachment in html form