Sending mails in java
796219Jun 30 2008 — edited Jun 30 2008Hello
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