I think I have a great tip for you all.
When you use this code in a Servoy Client on Windows:
- Code: Select all
application.showURL('mailto:[email protected]')
There was always opening that annoying empty browser-page!
I found a away to workaround this one:
make a global method and call it: mailto
- Code: Select all
var email = 'mailto:'
email += arguments[0]
if(utils.stringMiddle(application.getOSName(),1,7) == "Windows")
{
application.executeProgram('rundll32', 'url.dll,FileProtocolHandler',email)
}
else application.showURL(email)
Now call the global method with:
- Code: Select all
globals.mailto('[email protected]')
The emailclient will open without the empty browser-page!
Have FUN!