📄 054_working_with_attaches.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/inside.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>PAGETITLE</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/all.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<script language="JavaScript" type="text/JavaScript">
if (self == top) { top.location.replace("index.html");
} else {
parent.window.frames.leftmiddle.location.reload(true);
}
</script>
</head>
<body bgcolor="#FFFFFF" background="images/bg_1200.gif" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><a name="top"></a><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="83%" height="29" bgcolor="#F8F8F8"><img src="images/delimiter.gif" width="19" height="29" border="0" align="absmiddle"><!-- InstanceBeginEditable name="path" -->LEARNING<img src="images/bullet_3.gif" width="4" height="7" hspace="5" border="0"><span class="highlited">Working with Attaches</span><!-- InstanceEndEditable --></td>
<td width="17%" height="29" align="right" bgcolor="#F8F8F8"><!-- InstanceBeginEditable name="navtop" -->
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F8F8">
<tr>
<td width="19"><img src="images/delimiter.gif" width="19" height="29" border="0"></td>
<td width="34"><a href="053_server_variables.html"><img src="images/nav_back.gif" alt="< back" width="34" height="7" border="0"></a></td>
<td width="21"><img src="images/delimiter_2b.gif" width="1" height="7" hspace="10" vspace="10" border="0"></td>
<td width="55"><a href="055_working_with_multiple_select_fields.html"><img src="images/nav_forward.gif" alt="forward >" width="55" height="7" border="0"></a></td>
<td width="19"><img src="images/1x1.gif" width="19" height="29" border="0"></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td colspan="2" bgcolor="#CECECE" height="1"><img src="images/1x1.gif" width="1" height="1" border="0"></td>
</tr>
<tr valign="top">
<td height="80%" colspan="2"><table width="100%" border="0" cellspacing="15" cellpadding="0">
<tr>
<td><!-- InstanceBeginEditable name="content" --><span class="highlitedtitle">Working with Attaches</span><br><br>Form Processor Pro 4.0 allows you to attach predefined and user-submitted files to e-mail message being sent. Following variables must be set correctly to make this feature work: <em>attachments_path</em>, <em>max_file_size</em> and <em>attachments_ttl</em>.<br>
Please refer to section <a href="032_basic_configuration_file.html" class="ssilka">FPP Description / Basic Configuration File</a> for detailed description of the variables above.<br><br>
<span class="hhblue">1. Predefined attachments</span><br>
First, you need to upload attachment to the server folder defined in <em>attachments_path</em>. To attach this file to the email template you need to append to header information such header line: <br>
<em>Attachment: name_of_file</em><br><br>
<u>Example</u> (email template, just header lines):<br>
<em>To: email@somehost.com<br>
From: useremail@submitted.com<br>
Subject: Subject you set<br>
Attachment: test.txt</em><br><br>
Will attach test.txt file to the email.<br>
<u>User attachments</u><br>
To enable user-uploaded attaches you need:<br>
<ol>
<li>your form to be set as multipart-form-data:<br>
<em><form enctype="multipart/form-data" ..(other parameters)… ></em></li>
<li>to include to your form tag of the following kind:<br>
<em><input type=file name="field_name"></em></li>
<li>e-mail template to contain following header:<br>
<em>Attachment: [field_name_uploaded]</em></li>
</ol>
<u>Example:</u><br>
Form has such tag:<br>
<em><input type=file name="User-File"></em><br><br>
Email template will have such line in headers section:<br>
<em>Attachment: [User-File_uploaded]</em><br><br>
Now Form Processor Pro 4.0 will attach user file "User-File" to the email template.<br>
To have more attachments you need to separate them in the email template using comma separation.<br>
<u>Example:</u><br>
<em>Attachment: [User-File_uploaded], test.txt</em><br>
<!-- InstanceEndEditable --></td>
</tr>
</table></td>
</tr>
<tr>
<td height="42" align="center" valign="bottom"><!-- InstanceBeginEditable name="navbottom" -->
<table height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="34" valign="top"><a href="053_server_variables.html"><img src="images/nav_back.gif" alt="< back" width="34" height="7" border="0"></a></td>
<td width="21" valign="top"><img src="images/delimiter_2b.gif" width="1" height="7" hspace="10" border="0"></td>
<td width="55" valign="top"><a href="055_working_with_multiple_select_fields.html"><img src="images/nav_forward.gif" alt="forward >" width="55" height="7" border="0"></a></td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
<td height="42"> </td>
</tr>
<tr>
<td height="37" align="center" valign="top"><span class="copyright">© 2003 Email-Form.com. All Rights reserved.</span></td>
<td height="37" align="right" valign="top"><a href="#top" target="_self"><img src="images/nav_top.gif" width="75" height="15" border="0"></a></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -