Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to open default email client

 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
JavaMail is the one. Klik on this link
/Rene
 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great! I see how this works now. Thanks for your help!

Barry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic