Jump to content

Form to Email with Attachment


csvaasan

Recommended Posts

Hi,

 

I am new to Coding; but now developing a website where I need to accomplish,

- Form Submission should be delivered to Email ID along with Uploaded file as Attachment; also the Email should carry the VALUE of a Field (Job Ref.) as the subject.

- ONLY MS Word files (.doc, .docx, rtf) should only be allowed to select to Upload.

 

FORM CODE GIVEN BELOW; FORM DON'T HAVE ANY OTHER FIELD OTHER THAN THE FILE UPLOAD.

 

Can someone please help....

 

 

<form action="" name="myform" id="myform">
			<table width="100%" cellspacing="0" cellpadding="0" border="0" class="bgwhite">
        			<tr>
				<td height="25" colspan="4" background="images/bg_tabletitle.gif" class="textwhite" style="padding-left:8px;">Apply for this Vacancy</td>
        			</tr>                        
                		<tr>
				<td class="texttable" style="padding-left:8px;" valign="top">
<strong>Job Ref.</strong>
				</td>
	            	<td class="tabledivider"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td>
	            	<td class="texttable" valign="top">
EE-QATAR-GHD-020611
				</td>
			</tr>

			<tr>
                		<td colspan="3" height="2" class="bgborder"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td>
            		</tr>
			<tr>
      	           	 	<td width="125" height="25" class="texttable" style="padding-left:8px;"><strong>Submit Resume</strong></td>
            		<td width="21" class="tabledivider"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td>
            		<td class="texttable"><input name="upload" type="file" size="25" maxlength="200" class="fileattach"/></td>
			</tr>
			<tr>
            		<td colspan="3" height="1" class="bgbordere"></td>

			<tr>
                 	 	<td width="125" height="25" class="texttable" style="padding-left:8px;"></td>
            		<td width="21" class="tabledividere"></td>
            		<td class="textblue1"><input name="submit" type="submit" value="Apply" /> <input name="Clear" type="reset" value="Clear"/></td>
			</tr>
                    	<tr>
			<td colspan="3" height="2" class="bgborder"><img src="images/blanker.gif" width="1" height="1" border="0" alt=""></td>
			</tr>
			</table>

</form>

[/font][/size]

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/238309-form-to-email-with-attachment/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.