Main Topics
Browse All TopicsHello Everyone,
I am using jdk1.3, I have an image in the applet in the, image data which is fetched from the web-server as ::
Image image1=getImage(getcodebas
After writing some text and some more editig over it, which I have already done, I let the user save it to his/her hard disk. Since my applet is sigend I faced no problem in doing all his and I have done all these things successfully.
I also want one more thing, I want to give the user the choice of sending that saved file through email, with some text-body and subject, and this particular file as attachment. How to do email though java2.
Is it possible solely from Java2 or some more features of Java I have to use, as I have heard about JavaMail. If possible, I don't want to use anyting new, if it is possible from the old java2 only, it will be very nice for me to handle things.
How to do e-mail though java, if possible give me some source code also.
Thanks in advance and waiting for reply,
Best Regards
Cdgmmp
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
To be PAQ'ed and points refunded
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
sudhakar_koundinya
EE Cleanup Volunteer
Business Accounts
Answer for Membership
by: david_dPosted on 2001-02-27 at 11:16:41ID: 5884427
What I would recommend would be to have a servlet on the web server and use applet servlet communication. So all the e-mail details + attachment can be sent to the servlet where it could send it.
Also, sending an e-mail with an attachment I know it can be done using the JavaMail api, I don't think it can be done using the old sun package as 1) it is not used 2) it is for text messages only. I think you have no choice but to use the JavaMail! It wouldn't take long to add the JavaMail package to your system.
Regards,
David