smtphost, user, password);
transport.sendMessage(message, message.getRecipients(Message.RecipientType.TO));
transport.close();
}
catch(Exception e)
{
out.println(e.toString());
}
}
}
%>
<SCRIPT language=\"JavaScript\">
alert(\"邮件已经成功发送!\")
window.location.replace(\"../index.jsp\");
</SCRIPT>
</BODY>
</HTML>