Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2007, 03:59 AM
Member
 
Join Date: Jul 2007
Posts: 2
thedude is on a distinguished road
Sending a mail with the local mail program
hi,

i'd like to start the local mail program with a given mail address out of a swing application by pressing a button after the address was entered but i've no idea how i can start a mail program with a predefined address.

i'd be thankful for every hint
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-23-2007, 09:31 AM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
There is no built-in support for this in Java. You may try an existing Java library to do this or create it yourself. If you will do this yourself, you will need to learn JNI and call native methods to call the platform dependent method from Java.

Alternatively, this might work: When i open Start->Run on windows and pressing ENTER after typing "mailto:dd@dd.com" (without quotes), the system opens the default mail client as you wish. So at least for windows, you can try to execute that command (mailto:dd@dd.com) from Java using Runtime.exec() call. Check following tip for details:

Java Tips - How to execute a command from code
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-23-2007, 01:19 PM
Member
 
Join Date: Jul 2007
Posts: 2
thedude is on a distinguished road
i'll try it thx
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mail indirani New To Java 4 04-11-2008 02:12 PM
Sending Mail Using Sockets Java Tip java.net 0 04-07-2008 09:05 PM
Retreiving of mail body using mail number chandu.v09 JavaServer Pages (JSP) and JSTL 0 03-13-2008 03:25 PM
Sending mail Using JAVAMAIL peiceonly Advanced Java 3 07-19-2007 03:11 PM
a problem about java mail client program lunarstyle AWT / Swing 6 06-02-2007 12:43 AM


All times are GMT +3. The time now is 12:21 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org