Solved

Java Applet - Mail

Posted on 2000-03-14
7
272 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
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mapAB Challlenge 35 128
Java - Why doesn't this JFrame work 3 45
reverse digits of a number using for loop 5 36
java stored proc example 9 24
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

863 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now