0

I read at this thread: Thread , that mail clients on the local machine can be accessed via the class MAPI. What jar file do I need to be able to use this class?

Community
  • 1
  • 1
Markus
  • 1,452
  • 2
  • 21
  • 47

1 Answers1

1

If you want MAPI you could use OpenMapi.

If you don't need to use MAPI, you can instead use JavaMail API, This url has a tutorial about JavaMail API. http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/

Note that JavaMail does not support MAPI and has no plans to do so in the future.

8bitjunkie
  • 12,793
  • 9
  • 57
  • 70
Amith Mendis
  • 135
  • 1
  • 4
  • 15
  • OpenMapi is not yet available as far as my research goes and Javamail relies on a mail server. I want to send mails directly (hidden for the user) using the default mail client of the operating system running my application. So is it impossible to do this at all? – Markus Jul 09 '13 at 06:34
  • I can't understand what the "default mail client of the operating system" means? – Amith Mendis Jul 09 '13 at 06:41