posted 20 years ago
Hello Everybody,
I was trying to do the following in my send mail program:-
1. I am making a file using FileWriter:
FileWriter fw = new FileWriter(f);
fw.write(str);
2. I now want to attach this file with my mail. but before that I want to set the Content type of this as "application/smil". and trying the following code:
mimebodyparts[0].setContent(fds[0],"application/smil");
But when I recieve the mail and check the content type it shows "application/octet-stream".
I'd be highly obliged if some body help me to set the content type right for the above.
regards,
Arun