Article View: borland.public.jbuilder.java.language
Article #17567Re: Need help! How to connect to TCP/IP by using Java
From: John P. McGrath
Date: Sun, 01 Nov 1998 00:00
Date: Sun, 01 Nov 1998 00:00
28 lines
1583 bytes
1583 bytes
Elizabeth Tran <etran@image-impression.com> wrote: > I want to create an applet that send an email. > In order to do that, I have to find out way to talk to my > mail server. > What I understand I have to use Java to connect or telnet > thru TCP/IP to my mail server. I would be very surprised if someone has not already written a class library that will handle this for you. You could search for such packages on http://www.gamelan.com or http://www.jars.com. I have seen references to something called JavaMail from Sun, but I am really not certain whether it deals with processing the content, or with speaking with an SMTP server. Look at http://www.javasoft.com If not, writing code to talk to an SMTP server is not trivial, but not that difficult either. You need to open a socket to port 25 on the mail server, and follow the SMTP protocol. The specification of the SMTP protocol is available from sites that carry the Internet RFC's. It should be available at: ftp://rtfm.mit.edu -- Regards, John P. McGrath <mcgrath@enter.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.10a6c87d42c1fbee9896f3@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36376D9E.883EBE06@image-impression.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,824065cdca77564a X-Google-Attributes: gidf74b3,public From: mcgrath@enter.net (John P. McGrath) Subject: Re: Need help! How to connect to TCP/IP by using Java Date: 1998/11/01 Message-ID: <MPG.10a6c87d42c1fbee9896f3@forums.inprise.com> X-Deja-AN: 407388514 References: <36376D9E.883EBE06@image-impression.com> Organization: Software Consulting Services Newsgroups: borland.public.jbuilder.java.language