邮件发送简单例子-html文件

 1<html>
 2<head>
 3<title>JavaMail Form</title>
 4</head>
 5<body>
 6<form action="/purejsp/MailExample.jsp" method="post">
 7<table border="1" cellpadding="2" cellspacing="2">
 8<tr>
 9<td>To:</td>
10<td>
11<input maxlength="30" name="to" size="30" type="text"/>
12</td>
13</tr>
14<tr>
15<td>From:</td>
16<td>
17<input maxlength="30" name="from" size="30" type="text"/>
18</td>
19</tr>
20<tr>
21<td>Subject</td>
22<td>
23<input maxlength="30" name="subject" size="30" type="text"/>
24</td>
25</tr>
26<tr>
27<td colspan="2">
28<textarea cols="40" name="body" rows="10"></textarea>
29</td>
30</tr>
31<tr>
32<td>
33<input name="submit" type="submit" value="Submit"/>
34<input type="Reset"/>
35</td>
36</tr>
37</table>
38</form>
39</body>
40</html>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus