通过电子邮件发送订单到电子邮件地址的内容

时间:2017-06-17 01:55:28

标签: html forms email

我正在制作电子表格格式的订单,客户可以选择要购买的产品,并提交给我自己发送电子邮件所选产品(意味着数量是大于或等于1)项目名称,SKU,数量和联系信息以易于阅读的格式。从我找到的示例中,它们都不适用于我的电子表格表单。如何利用我的HTML表单执行此操作?任何帮助将不胜感激,谢谢!

<!DOCTYPE html>
<html>
<head>
<TITLE>B2B</TITLE>
<style>
table {
    width:100%;
}
table, th, td {
    border: 1px solid grey;
    border-collapse: collapse;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: none;
}
th, td {
    padding: 5px;
    text-align: center;
}
table#t01 tr:nth-child(even) {
    background-color: #eee;
}
table#t01 tr:nth-child(odd) {
   background-color:#fff;
}
table#t01 th {
    background-color: white;
    color: black;
}
tr { border: none; }
</style>
</head>
<body>


<form action="mailto:aiden.thomas.pyle@gmail.com" method="post" enctype="text/plain">

<table id="t01">
 <tbody>
     
<tr>
 <th><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3>Item Description</FONT></th>
 <th>
 <th><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3>Notes</FONT></th>
 <th><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3>SKU</FONT> </th>
 <th><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3>Cost</FONT></th>
 <th><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3>Quantity</FONT></th>
</tr>

<tr>
 <td><FONT COLOR=RED FACE="verdana, sans-serif" SIZE=3>Paper</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=3></FONT></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Printer Paper</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU1" value="9195512" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost1" value="$6.99" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity1"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>3-Hole Punch Paper</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="91832" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="$9.49" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Heavy Card Stock</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="9375882" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Wrapping Paper (x-mas)</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="9293374" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="$3.49" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Greeting Cards/env (x-mas)</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="9467119" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>10# Envelopes</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="90382" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="$2.99" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Legal Envelopes</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="91145" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="$1.79" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Padded Legal Envelopes</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="90749" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="$7.99" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Envelope Sealer</FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2></FONT></td>
 <td><align=center><input type="text" size="6" name="SKU" value="" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Cost" value="" disabled="disabled"></align></td>
 <td><align=center><input type="text" size="6" name="Quantity"></align></td>
</tr>

<tr>     
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=4></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=4></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=4></FONT></td>
 <td><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=4></FONT></td>
 <td><INPUT type="reset" value="Reset"></td>
 <td><INPUT type="submit" value="Submit"></td>
</tr>

<tr>
 <td><align=center><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Email </FONT><input type="text" size="20" name="email"></align></td>
</tr>
    
<tr>
 <td><align=center><FONT COLOR=BLACK FACE="verdana, sans-serif" SIZE=2>Name </FONT><input type="text" size="20" name="name"></align></td>
</tr>

</tbody>     
</table>
</form>
</body>
</html>

0 个答案:

没有答案