Trying to build a simple SMTP server

java Canada
  • 18 years ago

    i am trying to toy with building a simple SMTP server.........
    i am wondering if the approach i am taking is in the right direction and i am in need of a little advice/help.....
    first what i have been able to do


    1. i was able to create a ServerSocket and make it listen on port 25 for incoming traffic.
    2. i was able to create a Socket based on a received connection
    3. i was able to get the io streams from the socket


    if i run the server, go to my ISP's web-based e-mail and send an e-mail to myself ([email protected]), my socket shows it is connected, but i can't/don't know how to read from the socket.


    is what i am doing so far right/will it work??????
    what kind of InputStream should i use to read from the Socket (DataInputStream, BufferedInputStream, InputStream, etc....)??????
    how do i read from the input stream once i have established the stream(read(), readLine(), etc....)????


    any help would be appreciated...

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Java is to JavaScript what Car is to Carpet.” - Chris Heilmann