Re: send .doc, .xls files from server to client
Friday, December 26, 2008 01:13 PM
java.net.Socket is the basic API that Java platform provides to perform any socket communication.
If you are aiming as simulating a SMTP client connecting to an SMTP server then you need to do following
Connect to SMTP host
Perform inital connection handshakes as per SMTP
Start sending the data (read xls/doc content and send it over the stream)
finish transmission with EOF
Hope this helps !