• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create new email message

 
Tom Wheeler
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a new email message when the user hits a certain button. I have looked through the API for 1.4.2, and I'm not quite sure what I'm looking for. I just want the button to call the default email client and populate the "To:" field from String in a JTextField.
Basically its like when you hit a "mailto:" link in an html page, but in a Java app. How do I do it?
Thanks...
 
Joe Ess
Bartender
Posts: 9318
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You aren't finding it because that functionality isn't in the J2SE. That functionality is in the J2EE, the JavaMail API to be exact. Very popular subject in the Other Java APIs forum.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe's right. I'm moving this thread over there for followup.
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://coolservlets.com/Email/

is a really easy way to email in Java.

Brian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic