This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41068
    
  43
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.


Ping & DNS - my free Android networking tools app
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
 
Similar Threads
Blank Email Notification
how to do it with sockets???
communicate non java client with java server side components ?
Java running on an AS400
error while sending mail using socket class