当前位置:编程学习 > JSP >>

邮件例程 - JavaMail - 发送HTML邮件

form.htm
========
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>邮件例程 - JavaMail - 发送HTML邮件</title>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<form method="post" action="send.jsp">
<tr>
  <td>SMTP主机:</td>
  <td><input type="text" name="smtp" size="80"></td>
</tr>
<tr>
  <td>发信人:</td>
  <td><input type="text" name="from" size="80"></td>
</tr>
<tr>
  <td>收信人:</td>
  <td><input type="text" name="to" size="80"></td>
</tr>
<tr>
  <td>抄送人:</td>
  <td><input type="text" name="cc" size="80"></td>
</tr>
<tr>
  <td>暗送人:</td>
  <td><input type="text" name="bcc" size="80"></td>
</tr>
<tr>
  <td>主题:</td>
  <td><input type="text" name="subject" size="80"></td>
</tr>
<tr>
  <td valign="top">内容:</td>
  <td><textarea name="body" rows="5" cols="80"></textarea></td>
</tr>
<tr>
  <td colspan="2" align="center"><input type="submit" value="发送"></td>
</tr>
补充:Jsp教程,邮件
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,