Guest User

Untitled

a guest
Jan 30th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. //the html file for the example applet
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  3. <HTML>
  4. <!--
  5.  
  6. Copyright (c) 1998-2010 Oracle and/or its affiliates. All rights reserved.
  7.  
  8. Redistribution and use in source and binary forms, with or without
  9. modification, are permitted provided that the following conditions
  10. are met:
  11.  
  12. - Redistributions of source code must retain the above copyright
  13. notice, this list of conditions and the following disclaimer.
  14.  
  15. - Redistributions in binary form must reproduce the above copyright
  16. notice, this list of conditions and the following disclaimer in the
  17. documentation and/or other materials provided with the distribution.
  18.  
  19. - Neither the name of Oracle nor the names of its
  20. contributors may be used to endorse or promote products derived
  21. from this software without specific prior written permission.
  22.  
  23. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  24. IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  25. THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  26. PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  27. CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  28. EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  29. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  30. PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  31. LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  32. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  33. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34.  
  35. -->
  36.  
  37. <HEAD>
  38. <META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
  39. <TITLE>JavaMail</TITLE>
  40. </HEAD>
  41.  
  42. <BODY BGCOLOR="#CCCCFF">
  43.  
  44. <FORM ACTION="/servlet/JavaMailServlet" METHOD="POST"
  45. ENCTYPE="application/x-www-form-urlencoded">
  46. <P ALIGN="CENTER"><B><FONT SIZE="5" FACE="Arial, Helvetica">
  47. Welcome to JavaMail
  48. </FONT></B></P>
  49.  
  50. <P ALIGN="CENTER"><B><FONT SIZE="5" FACE="Arial, Helvetica">
  51. HTML Email Reader Demo
  52. </FONT></B></P>
  53. <CENTER>
  54. <P>
  55. <TABLE BORDER="0" WIDTH="100%">
  56. <TR>
  57. <TD WIDTH="40%">
  58. <P ALIGN="RIGHT"><FONT FACE="Arial, Helvetica">
  59. IMAP Hostname:</FONT>
  60. </TD>
  61. <TD WIDTH="60%"><INPUT TYPE="TEXT" NAME="hostname" SIZE="25">
  62. </TD>
  63. </TR>
  64. <TR>
  65. <TD WIDTH="40%">
  66. <P ALIGN="RIGHT"><FONT FACE="Arial, Helvetica">
  67. Username:</FONT>
  68. </TD>
  69. <TD WIDTH="60%"><INPUT TYPE="TEXT" NAME="username" SIZE="25">
  70. </TD>
  71. </TR>
  72. <TR>
  73. <TD WIDTH="40%">
  74. <P ALIGN="RIGHT"><FONT FACE="Arial, Helvetica">
  75. Password:</FONT>
  76. </TD>
  77. <TD WIDTH="60%"><INPUT TYPE="PASSWORD" NAME="password"
  78. SIZE="25"></TD>
  79. </TR>
  80. </TABLE>
  81. <INPUT TYPE="SUBMIT" VALUE="Login">
  82. <INPUT TYPE="RESET" NAME="Reset" VALUE="Reset"></P>
  83. </CENTER>
  84. <P>
  85. <HR ALIGN="CENTER">
  86. </P>
  87. <P><B><I><FONT FACE="Arial, Helvetica">Overview:</FONT></I></B></P>
  88.  
  89. <FONT SIZE="2" FACE="Arial, Helvetica">
  90. <b>THIS IS A DEMO!!!</b> Please see the JavaMailServlet.README.txt
  91. file for information on how to
  92. compile and run the servlet.<br> <br>
  93. This is a servlet that demonstrates the use of JavaMail APIs
  94. in a 3-tier application. It allows the user to login to an
  95. IMAP store, list all the messages in the INBOX folder, view
  96. selected messages, compose and send a message, and logout.
  97. </FONT>
  98.  
  99. <P><B><I><FONT FACE="Arial, Helvetica">Features:</FONT></I></B></P>
  100.  
  101. <UL>
  102. <LI><FONT SIZE="2" FACE="Arial, Helvetica">
  103. HTML access to your IMAP mailbox</FONT>
  104. <LI><FONT SIZE="2" FACE="Arial, Helvetica">
  105. Proxy-able anywhere HTTP can be proxied</FONT>
  106. <LI><FONT SIZE="2" FACE="Arial, Helvetica">FAST!</FONT>
  107. <LI><FONT SIZE="2" FACE="Arial, Helvetica">Easy to use</FONT>
  108. <LI><FONT SIZE="2" FACE="Arial, Helvetica">
  109. Uses web browser's content handling capabilities</FONT>
  110. <LI><FONT SIZE="2" FACE="Arial, Helvetica">
  111. Ultra small: 1 servlet (2 class files) and 1 html file (this one)</FONT>
  112. </UL>
  113.  
  114. <P><B><I><FONT FACE="Arial, Helvetica">Limitations:</FONT></I></B></P>
  115.  
  116. <UL>
  117. <LI><FONT SIZE="2" FACE="Arial, Helvetica">
  118. Only INBOX support (no user folders)</FONT>
  119. <LI><FONT SIZE="2" FACE="Arial, Helvetica">
  120. Can't delete, copy, move, print, save, forward, reply to, search in
  121. messages --<BR>
  122. but it could be done</FONT>
  123. <LI><FONT SIZE="2" FACE="Arial, Helvetica">
  124. Doesn't check for new messages (have to log out and log back it)</FONT>
  125. </UL>
  126.  
  127. <P>
  128. <HR ALIGN="CENTER">
  129. </P>
  130.  
  131. <P><FONT FACE="Arial, Helvetica">Feedback to </FONT>
  132. <A HREF="mailto:[email protected]">
  133. <FONT FACE="Arial, Helvetica">[email protected]</FONT></A>
  134. </FORM>
  135.  
  136. </BODY>
  137.  
  138. </HTML>
Advertisement
Add Comment
Please, Sign In to add comment