Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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 java.now 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.
0 · ·