Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sending mails in java

796219Jun 30 2008 — edited Jun 30 2008
Hello

Our server offers a "send mail" functionality that allows to send a mail with an attachement.

Now the customers want to use their local outlook adress book to send the mail.

The initial idea was this:
1. Create outlook message on server side using POI
2. Make client download message
3. Use java.awt.Desktop to open the mail for edit

This did not work because:
Opening a message with "edit" results in a strange error message (Exception in thread "main" java.io.IOException: Failed to edit file:/D:/download/simple_test_msg.msg. Error message: The parameter is incorrect.)

Opening with "open" opens the message, but the message can not get edited

Opening with "mail" is insufficient because the URI allows to set to, subject and body, but no attachements ;-(

How do i make the configured client mail application open a new message with my file attached?

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 28 2008
Added on Jun 30 2008
1 comment
35 views