S Krishnan
May 1st, 2000, 10:17 AM
I have a few problems. I have a Html file generated programmatically by a servlet. I need to send it to certain email ids. I copied a mail program from the net, which uses SMTP. The file is being sent to the appropriate email id but the problems are as follows :
1. The sender's address is empty.
2. The subject is empty.
3. I need to send the file as an attachment. I dont know how to do this.
It would be great if I could get some help and prewritten code on the above.
One of the programs use the following command :
Session session = props.getDefaultInstance(props, null);
The system gives an IOException at this line. Can u help me out in the above?
Thanks,
Kris
1. The sender's address is empty.
2. The subject is empty.
3. I need to send the file as an attachment. I dont know how to do this.
It would be great if I could get some help and prewritten code on the above.
One of the programs use the following command :
Session session = props.getDefaultInstance(props, null);
The system gives an IOException at this line. Can u help me out in the above?
Thanks,
Kris