• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Invoking a default mail client with attachments

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic