• Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoking a default mail client with attachments  RSS feed

 
Padma Prasad
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I have a problem with Mailing from my application. I have a simple GUI written in Java. I have two buttons Attach and Email. Attach attaches a file and email should invoke the default email client with this attachment.
How can I do this? can somebody help me? I guess I cannot use Java Mail API because I have to invoke the default email client for the user to choose addresses from his address book.
Thanks,
Padma.
[ March 10, 2004: Message edited by: N Padma ]
 
john smith
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
should invoke the default email client with this attachment
Is there an absolute requirement ot do this? The default email client is just an Mail User Agent, which is what your GUI program will be too. Both could just communicate directly with the SMTP server - your app using the Java Mail API. If you absolutely must communicate with the another MUA rather than the SMTP server directly, then it depends on the MUA. If it were Outlook I suppose you'd have to write/buy something to bridge between Java and COM and call a bunch of CDO methods. Lotus gives you a Java Api to communicate directly with it. Local address books by and large are sorted as a file on a local machine. If you just want to let people select an address from their address book, you would really need a MUA that uses text files to store this data - I doubt very much that you could do it with Outlook for example.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!