Mail through rundll

String url ="rundll32 url.dll,FileProtocolHandler mailto:abc@dsfg.com?subject=Trade Details for Client Id "+"&body="+sendData+"&attachments="+"\"\"c:\\test.txt\"\"";

try

{

Runtime.getRuntime().exec(url,null);

}

catch (Exception e)

{

e.printStackTrace();

}

This Code Working with MS Outlook but not attach file with Outlook Express.

If Anybody have reason behind this plz send me.

Thx....

Message was edited by:

Div_yesh

[819 byte] By [Div_yesha] at [2007-11-26 18:23:57]
# 1
Are you certain that the mailto command actually allows you to create attachments? I thought it only allowed you to address the message, create a subject, determine who the message will be copied/blind copied to and then provide some text for the bosy of the email.
Tillermana at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...
# 2
Yes this code works for outlook 2003 (version 11.5..) perfectly but not attached through outlook 2000 and other lower verrsions.(version 6.0) If I set the plain long message in msgbody then it again gives error (shortcut Error).So I can't use msg body.null
Div_yesha at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...
# 3
Do you have to use rundll32? Does your system have access to an SMTP server? If so you could use the Java Mail API and cut out the middle man.....
iklestevea at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...
# 4
Use JDIC.
mlka at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...
# 5
I know its not an JAVA problembut anyone have any solution abt this.......plz helpMessage was edited by: Div_yesh
Div_yesha at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...
# 6
> I know its not an JAVA problem> but anyone have any solution abt this.......plz helpDid you take a look at JDIC?
kajbja at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...
# 7
Ya I use JDIC it's nicebut I want to use through only rundll32.exe
Div_yesha at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...
# 8
Then you should try a Microsoft forum...
bckrispia at 2007-7-9 5:58:01 > top of Java-index,Java Essentials,Java Programming...