Sending mails using de default email program.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Gino_Cateriano
Posted On:   Monday, July 9, 2001 05:49 PM

I want that when a user clicks on a specific button, a new window is opened with an email ready to be sent in the default email aplication (for example, OutLook). Very similar as when you click on a emai link in a browser, with the diference that the destination address ,the subject and the message body are already filled.

Re: Sending mails using de default email program.

Posted By:   Ilya_Kharmatsky  
Posted On:   Tuesday, March 5, 2002 06:31 AM

hi! here is the way how you can do it if your application is running on Win2000.


String cmd = "cmd.exe /c start mailto:default@mail?subject=default_subject&body=default%20body"";


try


{


Runtime.getRuntime().exec(cmd);


}catch(java.io.IOException e)
{e.printStackTrace();}
About | Sitemap | Contact