dcsimg
how to open a email editor from a java application by clicking a button
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   manisha_kamat
Posted On:   Monday, May 27, 2002 08:32 AM

WHEN I USE THE FOLLOWING CODE:


			
String cmd = "outlook start mailto:default@mail?subject=default_subject&body=default%20body"";
public adchange1(){
try
{
Runtime.getRuntime().exec(cmd);
}catch(java.io.IOException e) {e.printStackTrace();} }

I GET THE FOLL ERROR


			
java.io.IOException:CreateProcess:outlook start mailto:default@mail?subject=default_subject&body=default%20body"" error=0

HOW DO I REMOVE THE ERROR

Re: how to open a email editor from a java application by clicking a button

Posted By:   Lunkwill_Vroomfondel  
Posted On:   Monday, May 27, 2002 03:44 PM


String[] cmd = {"outlook", "start", "mailto:default@mail?subject=default_subject&body=default%20body"};


could be a possible solution if there is an executable named outlook which accepts those parameters...
About | Sitemap | Contact