Forum Stats

  • 3,780,920 Users
  • 2,254,456 Discussions
  • 7,879,494 Comments

Discussions

JDIC - Current system default mailer is not supported.

Hello,

I try to send an email via JDIC API.

I currently have Lotus Notes as default mailer on Windows XP Professional SP1 (HKEY_LOCAL_MACHINE/SOFTWARE/Clients/Mail is set to 'Lotus Notes')

I get the following error :
Exception in thread "main" java.lang.UnsupportedOperationException: Current system default mailer is not supported.
at org.jdesktop.jdic.desktop.internal.impl.ServiceManagerStub.getService(Unknown Source)
at org.jdesktop.jdic.desktop.internal.ServiceManager.getService(Unknown Source)
at org.jdesktop.jdic.desktop.Desktop.mail(Unknown Source)
at jdicapplication.MailDemo.<init>(MailDemo.java:38)
at jdicapplication.Main.tryMailDemo(Main.java:51)
at jdicapplication.Main.main(Main.java:62)


My program
try {
List tos = new ArrayList(1);
tos.add("xxxx <[email protected]>");
tos.add("yyyy <[email protected]>");

Message mail = new Message();
mail.setBody("Voici sans pi�ce jointe.");
mail.setSubject("Test message");
mail.setToAddrs(tos);

Desktop.mail(mail);

} catch (DesktopException de) {
de.printStackTrace();
}

I found some bugs (some bugs being closed) with JDIC and Mail:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434374
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6460471

Do you think it is related to this bug, or is Lotus Notes really not supported.

Regards

Laurent
This discussion has been closed.