Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Windows 7: how to open e-mail client
Windows 7: how to open e-mail client [message #719901] Mon, 29 August 2011 12:07 Go to next message
Thomas Singer is currently offline Thomas Singer
Messages: 75
Registered: July 2009
Member
On Linux it works when executing

Program.launch("mailto:user@server.com")


but on my Windows 7 system it doesn't. Is this expected behavior? Is there another way to open the default e-mail client reliable in a platform independent way using SWT?

Thanks in advance.
Tom
Re: Windows 7: how to open e-mail client [message #719964 is a reply to message #719901] Mon, 29 August 2011 15:03 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
Hi Tom,

I wouldn't expect Program.launch() to handle a string like that across
platforms. I feel like there was a feature request to make it possible
to do this in SWT, but I can't find it now, so if you want feel free to
log one at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=SWT&bug_severity=enhancement
..

In the meantime I think you'll need to use an alternative like
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/
..

HTH,
Grant


On 8/29/2011 8:07 AM, Thomas Singer wrote:
> On Linux it works when executing
>
> Program.launch("mailto:user@server.com")
>
> but on my Windows 7 system it doesn't. Is this expected behavior? Is
> there another way to open the default e-mail client reliable in a
> platform independent way using SWT?
>
> Thanks in advance.
> Tom
Re: Windows 7: how to open e-mail client [message #720045 is a reply to message #719901] Mon, 29 August 2011 18:17 Go to previous message
Thomas Singer is currently offline Thomas Singer
Messages: 75
Registered: July 2009
Member
Thanks for answering. I try to avoid using something from java.awt, because there is a ugly bug which prevents the opening of the SWT file dialog on Windows when using AWT.
Previous Topic:filtering comboviewer on linux and mac
Next Topic:Problem in Canvas Redraw
Goto Forum:
  


Current Time: Mon Sep 22 10:14:45 GMT 2014

Powered by FUDForum. Page generated in 0.01796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software