Solved

Java Applet - Mail

Posted on 2000-03-14
7
276 Views
Last Modified: 2009-12-16
Can we send mail from an Java Applet?
Also can we get the client Browsers default e-mail id?


0
Comment
Question by:ganeshtnr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 2

Expert Comment

by:muraliram
ID: 2618418
Dear ganeshtnr,

          You cannot connect to any other machine in the network except to the one from which the applet is coming. If you still want to open up a connection to other machines you should create signed applet with network permission. Using Java Mail Api you can easily send the mail. For creating signed applets visit

www.ddj.com/articles/1999/9902/9902h/9902h.htm

www.suitable.com/CodeSigningCerts.shtml
www.suitable.com/CodeSigningSignExp.shtml#top
www.suitable.com/CodeSigningSignNav.shtml#top

There is another method. From the applet you can apss all the mail data
to a servlet. From the servlet you can send mail easily without security restrictions. I prefer this. This avoids the downloading of javamailapi to the cleint machine because it is an extension to JDK. This avoids signing applets. Signing an applet means you should get a certificate from a certificate authority. You should pay for this if you want to distribute it over internet. You should get certificate seperately for IE and Netscape. If you are using servlets you can take advantage of the Java Mail Api also.

For getting certificates visit

www.verisign.com/developers/index.html

Information on servlets

java.sun.com/products/servlet
www.servlets.com
www.servletcentral.com

Try

All the best

Murali


0
 
LVL 4

Expert Comment

by:jerch
ID: 2618625
I agree with muraliram.  Use servlet in sending mails.
0
 

Expert Comment

by:karthikp
ID: 2618696
Hi Ganesh
 this is karthikp
 just visit http://www.ozemail.com.au/~dcrombie/mailform.html
 this will help u to send mail from Javascript itself...
Regards
karthik
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:muraliram
ID: 2618745
Dear Karthik,

    gaeshtr wanted to send mail from Java, and your link points to JavaScript.You should not lock the question for an answer that is not related with the topic.Please unlock the question.

Cheers,

Murali
0
 

Accepted Solution

by:
karthikp earned 70 total points
ID: 2618866
Dear all,
As murali said I will unlock the question.
But using javascript we can send mails as well as get the client Browsers default e-mail id.
Regards
karthik

0
 

Author Comment

by:ganeshtnr
ID: 2619031
Dear Muraliram,

Though my question was on Java Applet,  my motive was to send e-mail from client browser.  If it can be achived by JavaScript itself then nothing like it.  The <B>Website</B> suggested by karthik saved the purpose.  I Thank karthik very much for . The signed applet web site is however quite informative and might be helpful in future, thankyou Muraliram for that.  

Bye
Ganesh
0
 
LVL 2

Expert Comment

by:muraliram
ID: 2619046
Dear Ganesh,

       It's OK.Ganesh

Murali
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ejb example issues 3 85
login form jsp example 2 68
hashmap order 17 59
passing enum to a method 4 47
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question