Solved

Sending an email on pressing a JButton

Posted on 2010-11-11
7
323 Views
Last Modified: 2012-05-10
Hi,

I was wondering if this is really easy to do.
On clicking a JButton, I want a blank email to be sent to a predefined email add.
Can some please give the code snippet to be inserted in actionlistener to achieve this.

Actually I even want a textarea to write mail and email id, but if some one can just tell the easier version that is jst sending a mail .. I can take from there.

Thanks a lot !
0
Comment
Question by:hipal
  • 3
  • 3
7 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 34115678
0
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
ID: 34115768
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34115803
:)
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 92

Expert Comment

by:objects
ID: 34115924
0
 

Author Comment

by:hipal
ID: 34116004
I am not sure about mail servers and stuff.

I do not know which one (or if one) I should use. All I want to do is to send a mail on pressing a JButton.

Please suggest which is the best and easy out ?
0
 
LVL 92

Expert Comment

by:objects
ID: 34116055
more than likely the comment you accepted will not work (not sure why you accepted it), try the code I posted
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 34116078
You just need a Google account to use the code i linked to
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
An analysis of the phishing scam that has been affecting Google users, along with steps to take for protection, as well as what to do if you receive one of the emails.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

813 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

9 Experts available now in Live!

Get 1:1 Help Now