Page 1 of 4

HOW TO: open the default email client cross-platform

PostPosted: Tue Nov 18, 2003 1:08 pm
by Harjo
There is a way to open the default client, and I think it is cross-platform:

make a text field: url (make sure it is big enough, let say: 8000) and fill it with:
Code: Select all
mailto:your.friend@doesntexist.com?cc=another.friend@doesntexist.com,yetanother.friend@doesntexist.com&bcc=yourboss@doesntexist.com&reply-to=me@myadress.com&subject=mailto%20scheme&body=Hello%20Everybody


make the following method:
Code: Select all
application.showURL(url)

On Windows it is working!, can somebody test this on mac and linux?

PostPosted: Tue Nov 18, 2003 3:46 pm
by IT2Be
It works... On developer and client on OS X 10.3 :D

It doesn't work on Linux client (with OS X server)...

PostPosted: Tue Nov 18, 2003 4:04 pm
by ROCLASI
Ofcourse this is not a Servoy issue but an OS issue.

The OS knows what email app is the default and sends the event to that application. if the application doesn't understand that event (like Groupwise on MacOS9 and below) then it ends there.
Ofcourse webmail doesn't work either with this because you use a webbrowser for this.

I dunno how and/or if you can set the default email application under Linux but i would look there first.

HTH

PostPosted: Tue Nov 18, 2003 5:04 pm
by IT2Be
Well, probably you are right but 'mailto:whasoever' works like expected from within the browser...

PostPosted: Mon Nov 24, 2003 9:05 pm
by ROCLASI
IT2BE wrote:Well, probably you are right but 'mailto:whasoever' works like expected from within the browser...


Interesting...
Is this Netscape/Mozzila with the email app inside the browser app ?
Or does it open up a third party email app?

PostPosted: Mon Nov 24, 2003 9:46 pm
by IT2Be
third party: KMail...

PostPosted: Mon Nov 24, 2003 9:58 pm
by Harjo
Does anybody know, how to add an attachment in the mailto-function?

PostPosted: Mon Nov 24, 2003 10:17 pm
by IT2Be
I can imagine this is not possible since there is also a limit to the total number of characters you can send in the complete 'mailto' string... Don't know how much that limit is though.

PostPosted: Tue Nov 25, 2003 12:24 am
by Harjo
It can be done! I have searched around, and there are (complicated) examples: uses vbscript and API-calls like ShellExecute. and examples using MAPI-calls
But I get non of them, working right. (I mean with the abbility to add attachement.)
Is there a vbscript-guru around here? For us, it only has to work in Windows!
here is a link: http://www.smithvoice.com/simple.htm

PostPosted: Tue Nov 25, 2003 1:29 am
by Jan Aleman
I havn't seen any that will work with Outlook. Why don't you use a bean like ezSMTP?

PostPosted: Tue Nov 25, 2003 9:14 am
by Harjo
Because most of ouer customers use outlook or an other MAPI-compatible browser. And we are converting a Filemaker-App to Servoy. In Filemaker this is a standard function, to open an email-client, with an attachment. The reason that we don't use ezSMTP is that ouer customers want to keep track of the emails in there own email-client.

PostPosted: Tue Nov 25, 2003 9:54 am
by admin
HJK wrote:The reason that we don't use ezSMTP is that ouer customers want to keep track of the emails in there own email-client.

BCC the user

PostPosted: Tue Nov 25, 2003 12:59 pm
by IT2Be
That's exactly what I suggested my customers. They accept and, after thinking about it, even like this...

PostPosted: Wed May 24, 2006 9:17 pm
by rarbuthnot
I'm trying to figure out how to include an attachment using this method of email generation.

It looks like someone else needed this as well, but it was never resolved.

Any ideas?

PostPosted: Wed May 24, 2006 9:38 pm
by Harjo
not possible!