Launch default email application with attachment?
843810Feb 8 2008 — edited Mar 23 2010Is there a way of doing this i'm just too thick to see using the Desktop.getDesktop().mail functionality in Java 6?
I can set a mailto URI which sets the to and body and subject, but mailto URI's don't do attachments. I can however copy my attachment file onto the system clipboard and set the message body to say "Paste the attachment in here!" so it's only a click away, but no way to get the attachment in automatically.
Predictive reply rejoinders ;-) :
JDIC has a desktop.mail (Message msg) which would do the job beautifully. Unfortunately it requires parcelling up all the JDIC native files as well just to save on that one mouse click. Plus JDIC doesnt seem to do mac support. As the Desktop functionality of JDIC got rolled into Java 6 I was looking for the same command but they appear to have omitted it... :-(
JavaMail... nice, but javaw.exe is blocked as a process on my smtp port and I don't have the permissions to change that (my laptop is another story) But I also think If I can launch the default client all the setting up has been done... this isn't aimed at home users so there's no homail / gmail web-based email to consider really.