Solved

Java Applet - Mail

Posted on 2000-03-14
7
275 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

832 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