This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java SMTP Programming

 
Divya Kamath
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton for such an immediate response!will check out Apache James
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic