HOW TO: open the default email client cross-platform

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Re: HOW TO: open the default email client cross-platform

Postby david » Sat Aug 16, 2014 12:59 am

For us, the email url does work. In case that helps with your debugging process.
David Workman, Kabootit

Image
Everything you need to build great apps with Servoy
User avatar
david
 
Posts: 1727
Joined: Thu Apr 24, 2003 4:18 pm
Location: Washington, D.C.

Re: HOW TO: open the default email client cross-platform

Postby hareendra » Fri Aug 22, 2014 7:36 am

Hi,

Well I can't get it to work. However I came across a method that works.
Code: Select all
url = 'mailto:' + sEmail;
   if(utils.stringMiddle(application.getOSName(), 1, 7) == "Windows") {
       application.executeProgram('rundll32.exe', ['url.dll,FileProtocolHandler', url]);
   }
   else {
      application.showURL(url);
   }


Regards,
Hareendra
hareendra
 
Posts: 98
Joined: Wed Sep 17, 2008 11:41 am

Previous

Return to How To

Who is online

Users browsing this forum: No registered users and 11 guests