Jose Austin Raj wrote:

> You need the specifics of the POP/SMTP protocol
> for that. (search in altavista or hotbot for this)
> For using Java to bulid your applets check out the
> socket class.
> In JDK1.2 I'm sure there must be a SMTP class :-)
>

JavaMail supports IMAP and SMTP in its standard download, and you can get POP3
support as a separate download also (although the POP3 protocol doesn't
support folders the way it sounds like the original requestor would like).

    http://java.sun.com/products/JavaMail

You can use JavaMail in an applet just like you can on the server.  However,
you will run into security restrictions trying to access the mail services on
any server other than the one you downloaded the applet from, unless the
applet is signed.  See the applet security docs in the JDK documentation
bundle for more information.

Craig McClanahan

PS#1:  There is indeed an undocumented simple SMTP class in some JDKs, but
you're better off not using it -- you have absolutely no guarantee that the
class will be there on any given platform, or that the calling sequences won't
get changed in the future.  That's why nearly every Java add-on API you see
defines standard interfaces (documented) that are portable across custom
implementations (normally not documented).

PS#2:  Even if you use the undocumented class, or write socket-level mail
protocol logic yourself, you still have to deal with the security issues of
the applet sandbox.


>
> ----- Original Message -----
> From: Ramesh <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 11, 1998 7:02 PM
> Subject: POP3 Servlet/Applet
>
> | Hi,
> | I have work out to make a applet which can send a mail from web browser
> using
> | socket and smtp server of the host machine.
> | Same way I have to make a applet which should be able to read the mail
> from any
> | (or initially only the originating host) pop account with delete etc.
> option
> | I have to understand IMAP also so that i can manage the folders also in
> server.
> |
> | How should i go for that.
> | Any reference to some example or good tutorial would be a great help.
> |
> | Thanks in advance
> |
> | Ramesh
> |
> |
> ___________________________________________________________________________
> | To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> | of the message "signoff SERVLET-INTEREST".
> |
> | Archives: http://archives.java.sun.com/archives/servlet-interest.html
> | Resources: http://java.sun.com/products/servlet/external-resources.html
> | LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> |
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to