dcsimg
Very Urgent! Help!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Joy_Toe
Posted On:   Monday, February 5, 2007 10:52 PM

I have an eclipse application to open a new email message with an attachment (in the default mail client) clicking a button.

Below are my codes:-

Runtime.getRuntime().exec(new String[]{"cmd.exe","/c","start mailto:abc@abc.com?subject=MailTo&cc=cde@abc.com&attachment="e://myfile.txt"});

The problem is that the file can't be attached.
Appreciate suggestions and solutions.
Pls reply asap as this application is very urgent

Thanks.

Re: Very Urgent! Help!

Posted By:   Robert_Lybarger  
Posted On:   Tuesday, February 6, 2007 05:57 PM

First of all, you are asking a question about a microsoft-specific system call -- this isn't really the right forum to sort that out. Second of all, don't post "urgent!" in your problem description -- everyone's problem is urgent to them, and it isn't like the people who might have the answer are prioritizing who they respond to based on the posters personal sense of urgency (or number of exclamation marks). Finally, I use a Mac, so I couldn't guess what the issue is, unless the system call is choking on the double-forward-slash. (Windows paths are, generally, with backslashes, although I'll grant the argument does resemble a URL.)
About | Sitemap | Contact