--
Sun JunXu wrote:
> --
>
> if I want to create a web-based mail receiver,like as hotmail interface, do
> I need to use java mail?
>
For a very simple send-only interface, the required protocol is so simple that
you probably don't need JavaMail -- it's about 100 lines of code to connect to
the server and send the message.
Mail reader programs like Hotmail, on the other hand, typically talk to a mail
server, using a protocol like POP3 or IMAP4 to retrieve the messages, and SMTP
to send them. JavaMail has a nice API for dealing with these kinds of things,
and includes implementations for POP3 and SMTP, which makes it very convenient
to use.
You don't *have* to use JavaMail for this, because you can always deal with
these protocols yourself at the TCP/IP socket level. But you're going to be
inventing a lot of the same stuff again, so using JavaMail would save you a
bunch of time.
Whether you use JavaMail or not, you will definitely want to study the Internet
standards documents that define the POP3, IMAP4, and SMTP protocols, just so
you understand what mail programs can and cannot do.
Craig McClanahan
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]