HOW TO: open the default email client cross-platform

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:

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:

application.showURL(url)

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

It works… On developer and client on OS X 10.3 :D

It doesn’t work on Linux client (with OS X server)…

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

Well, probably you are right but ‘mailto:whasoever’ works like expected from within the browser…

IT2BE:
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?

third party: KMail…

Does anybody know, how to add an attachment in the mailto-function?

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.

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

I havn’t seen any that will work with Outlook. Why don’t you use a bean like ezSMTP?

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.

HJK:
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

That’s exactly what I suggested my customers. They accept and, after thinking about it, even like this…

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?

not possible!

HJK:
not possible!

What do I do instead?

use the mail-plugin!

HJK:
use the mail-plugin!

The Mail plugin won’t open a new message for editing on the client’s computer.

I’m not quit sure what you want.

do you want to connect to the local emailclient? outlook? outlook express? etc..?
than you have the options, you allready have investigate: (mailto: blabla, attachments wont work!)

If you want to send emails with attachments from within Servoy you have to use the mail-plugin. With the plugin you can download email (pop3) and send email (smtp) any way you want.

like this:

You can also connect to outlook through the office plugin.

http://www.it2be.com/plugins.htm#office