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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.