File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes How to open default email client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to open default email client" Watch "How to open default email client" New topic
Author

How to open default email client

Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Hello all,
I have seen programs that can open up your default email client and automatically populate the To, From, Subject, CC, Message, etc. Does anyone know how this is done, and can it be done in Java?
Many thanks,
Barry
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Hi
JavaMail is the one. Klik on this link
/Rene


Regards, Rene Larsen
Dropbox Invite
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Rene,
sorry, I don't get it. I have used JavaMail before, but I don't understand how this will help me open up a default email client and populate the fields, and let the email client (such as Eudora) handle the send. Please explain.
Thanks,
Barry
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Hi
I misunderstood you.
But you can use 'mailto' like this:
mailto:xx@somemail.com?CC=yy@anothermail.com&BCC=zz@bcc.com&Subject=The Readme File&Body=This is body

/Rene
[ June 23, 2002: Message edited by: Rene Larsen ]
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

Great! I see how this works now. Thanks for your help!

Barry
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to open default email client
 
Similar Threads
Read a file from the client
Open MS outlook from Java Application
Sending mail on click !
default email browser on click ???????????
embed URL in JTextPane