This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Prompting an email client

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a java app running as a rich client plugged into the Eclipse framework.

I would like to be able to email the log files to a help desk. I want this to occur in two cases. 1) When a fatal error occurs (we have an exception catch block handling this), 2) If the user clicks a button to prompt it.

If the user has an email client installed on their pc I need it open an email window with the To, Subject & Details filled in (if possible, create an attachment with the log file). - This is the same functionality as the html <a href="mailto:...">.

If the user has no email client installed, then open a text file containing the log.

What is the best way to do this. Do I use the java mail api? Any suggestions/example/links welcom.

Thanks
Richard

PS> We are using SWT to develop the rich client.
[ June 23, 2005: Message edited by: Blikkies Marais ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic