aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Java SMTP Programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java SMTP Programming" Watch "Java SMTP Programming" New topic
Author

Java SMTP Programming

Divya Kamath
Greenhorn

Joined: Feb 17, 2006
Posts: 9
I am creating an SMTP server in Java.I want to know how does one create the SMTP communication between the client and SMTP server.On the client-side, a socket connects to port 25 of the SMTP server,and sends mail using the JavaMail API.
I have the following queries:
1.Apart from the socket conenction and the Java Mail API, does anything else need to be done on the client side?
2.How do I create a protocol communication(helo,mail,rcpt etc) between the client and the SMTP server?Would i have to use sockets fro this or the mail API?
Please reply ASAP.
Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42929
    
  68
Welcome to JavaRanch.

On the client you do not even need to worry about socket connections - JavaMail does all this for you.

The ultimate in Java email servers is of course Apache James, so if you ever wonder how to proceed, James can probably provide you with example source code.
Divya Kamath
Greenhorn

Joined: Feb 17, 2006
Posts: 9
Thanks a ton for such an immediate response!will check out Apache James
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java SMTP Programming