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.
PS> We are using SWT to develop the rich client. [ June 23, 2005: Message edited by: Blikkies Marais ]