File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Create new email message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Create new email message" Watch "Create new email message" New topic
Author

Create new email message

Tom Wheeler
Greenhorn

Joined: Apr 23, 2004
Posts: 8
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

Joined: Oct 29, 2001
Posts: 8708
    
    6

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Joe's right. I'm moving this thread over there for followup.


[Jess in Action][AskingGoodQuestions]
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
http://coolservlets.com/Email/

is a really easy way to email in Java.

Brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create new email message
 
Similar Threads
Create new email message
Send Mail
Send Mail Problem
how to use one user input in two forms?
check out the create New Folder button in JFileChooser