Email attachments - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Email attachments

How to send attachments via email.I am using an smtp server(netscape messsaging server) to send mails.using my java program i am communicating to this server by a socket to the port 25.after that i am executing smtp commands through i/o streams in my problem is how to send attachment files through mail.i tried to send the file as bytes to the server through the socket stream.but it seems the server program couldn't recognise the data.can any body help me.a sample code is always welcome.thanx in advance.


Sign In or Register to comment.