mail.txt 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. README
  2. ======
  3. JavaMail(TM) API 1.5.0 release
  4. ------------------------------
  5. Welcome to the JavaMail API 1.5.0 release! This release includes
  6. versions of the JavaMail API implementation, IMAP, SMTP, and POP3
  7. service providers, some examples, and documentation for the JavaMail
  8. API.
  9. Please see the FAQ at http://www.oracle.com/technetwork/java/javamail/faq/
  10. JDK Version notes
  11. -----------------
  12. The JavaMail API supports JDK 1.5 or higher. Note that we have
  13. currently tested this implementation with JDK 1.5, 1.6, and 1.7.
  14. While JavaMail will work with JAF 1.0.2, we recommend the use of JAF 1.1
  15. or newer. JAF 1.1.1 is currently the newest version. Note that JAF 1.1
  16. is included in JDK 1.6 and JAF 1.1.1 is included in JDK 1.6.0_10 and
  17. later.
  18. Protocols supported
  19. -------------------
  20. This release supports the following Internet standard mail protocols:
  21. IMAP - a message Store protocol, for reading messages from a server
  22. POP3 - a message Store protocol, for reading messages from a server
  23. SMTP - a message Transport protocol, for sending messages to a server
  24. The following table lists the names of the supported protocols (as used
  25. in the JavaMail API) and their capabilities:
  26. Protocol Store or Uses Supports
  27. Name Transport? SSL? STARTTLS?
  28. -------------------------------------------------
  29. imap Store No Yes
  30. imaps Store Yes N/A
  31. gimap Store Yes N/A
  32. pop3 Store No Yes
  33. pop3s Store Yes N/A
  34. smtp Transport No Yes
  35. smtps Transport Yes N/A
  36. See our web page at http://www.oracle.com/technetwork/java/javamail/
  37. for the latest information on third party protocol providers.
  38. Download
  39. --------
  40. See the JavaMail project page to download this release.
  41. http://javamail.java.net
  42. Requirements
  43. ------------
  44. Note that the JavaMail API requires the JavaBeans(TM) Activation
  45. Framework package to be installed as well if you're using JDK 1.5.
  46. Download the latest version of the JavaBeans Activation Framework from
  47. http://www.oracle.com/technetwork/java/javase/index-jsp-136939.html
  48. and install it in a suitable location.
  49. Installation
  50. ------------
  51. UNIX/Linux
  52. ----------
  53. 1. Download the javax.mail.jar file from the JavaMail project website.
  54. http://java.net/projects/javamail/downloads/download/javax.mail.jar
  55. 2. Set your CLASSPATH to include the "javax.mail.jar" file obtained from
  56. the download, as well as the current directory.
  57. Assuming you have downloaded javax.mail.jar to the /u/me/download/
  58. directory, the following would work:
  59. export CLASSPATH=$CLASSPATH:/u/me/download/javax.mail.jar:.
  60. (Don't forget the trailing "." for the current directory.)
  61. Also, if you're using JDK 1.5, include the "activation.jar" file that you
  62. obtained from downloading the JavaBeans Activation Framework. For example:
  63. export CLASSPATH=$CLASSPATH:/u/me/download/activation/activation.jar
  64. 3. Download the javamail-samples.zip file from the project website.
  65. http://java.net/projects/javamail/downloads/download/javamail-samples.zip
  66. 4. Compile any sample program using your Java compiler. For example:
  67. javac msgshow.java
  68. 5. Run the sample program. The '-' option lists the required and optional
  69. command-line options to successfully run any sample. For example:
  70. java msgshow -
  71. lists the available options. And
  72. java msgshow -T imap -H <mailserver> -U <username> -P <passwd> -f INBOX 5
  73. uses the IMAP protocol to display message number 5 from your INBOX.
  74. (Additional instructions on how to run the simple mail reader sample
  75. and servlet sample are provided in client/README.txt and servlet/README.txt,
  76. respectively.)
  77. Windows
  78. -------
  79. 1. Download the javax.mail.jar file from the JavaMail project website.
  80. http://java.net/projects/javamail/downloads/download/javax.mail.jar
  81. 2. Set your CLASSPATH to include the "javax.mail.jar" file obtained from
  82. the download, as well as the current directory.
  83. Assuming you have downloaded javax.mail.jar to the /u/me/download/
  84. directory, the following would work:
  85. set CLASSPATH=%CLASSPATH%;c:\download\javax.mail.jar;.
  86. (Don't forget the trailing "." for the current directory.)
  87. Also, if you're using JDK 1.5, include the "activation.jar" file that you
  88. obtained from downloading the JavaBeans Activation Framework. For example:
  89. set CLASSPATH=%CLASSPATH%;c:\download\activation\activation.jar
  90. 3. Download the javamail-samples.zip file from the project website.
  91. http://java.net/projects/javamail/downloads/download/javamail-samples.zip
  92. 4. Compile any sample program using your Java compiler. For example:
  93. javac msgshow.java
  94. 5. Run the sample program. The '-' option lists the required and optional
  95. command-line options to successfully run any sample. For example:
  96. java msgshow -
  97. lists the available options. And
  98. java msgshow -T imap -H <mailserver> -U <username> -P <passwd> -f INBOX 5
  99. uses the IMAP protocol to display message number 5 from your INBOX.
  100. (Additional instructions on how to run the simple mail reader sample
  101. and servlet sample are provided in client/README.txt and servlet/README.txt,
  102. respectively.)
  103. Problems?
  104. ---------
  105. The JavaMail FAQ at http://www.oracle.com/technetwork/java/javamail/faq/
  106. includes information on protocols supported, installation problems,
  107. debugging tips, etc.
  108. See the NOTES.txt file for information on how to report bugs.
  109. Enjoy!
  110. The JavaMail API Team