HOW TO: open the default email client cross-platform

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

Yes. I want to open the compose a new message window on the default email client of the user (which is working fine using the techniques described earlier in this thread), but I want to be able to include an attachment to be sent out with the message.

If you want to send emails with attachments from within Servoy you have to use the mail-plugin.

Then Servoy can’t do what I want it to do, which is a shame.

With the plugin you can download email (pop3) and send email (smtp) any way you want.

like this:

That’s nuts. Why duplicate all that work when you can use Outlook, Thunderbird, Apple Mail, etc?

IT2Be:
You can also connect to outlook through the office plugin.

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

OK. That’s good news.

What should I do for our users on Macs?

I have that in the feature request list (I am a mac addict myself) but I am not going to tell that it is going to be added soon. Need to deliver a lot of other stuff first…

That’s nuts. Why duplicate all that work when you can use Outlook, Thunderbird, Apple Mail, etc?

Our customers are very happy with. complete and tight integration of mail (pop3 and imap) inside a CRM, so archieving email and organize them with your customers, is simple.

It is not Servoy that does’nt offer that feature. Outlook & Outlook express simple does not allow you to add attachments by a mail-url, because of all
kinds of security-issues. (try it with another app, also not possible)

Marcel indeed has a plugin, which communicates with Outlook.
There it is possible, to do such a thing. works only for Windows, not MAC.

HJK:
It is not Servoy that does’nt offer that feature. Outlook & Outlook express simple does not allow you to add attachments by a mail-url, because of all kinds of security-issues. (try it with another app, also not possible)

So, if doing it via mailto url won’t work, how do I do it?

This is a feature that our users use everyday in FileMaker. Otherwise it wouldn’t be so important.

I think they use some kind of MAPI connector:

look here: http://www.codeguru.com/cpp/i-n/network … php/c5417/

Maybe a great tip for Marcel, building that into a Servoy plugin! :slight_smile:

But this is also not cross platform or do I miss something?

indeed, only Windows!
They must have a solution for MAC also! which one? I don’t know.

In FM it is possible on Windows & Mac.

on Mac, it can be done with applescript:

http://developer.apple.com/qa/qa2001/qa1018.html

on windows with vbs:

http://www.emailarchitect.net/webapp/SM … ipting.asp

rarbuthnot:

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

Yes. I want to open the compose a new message window on the default email client of the user (which is working fine using the techniques described earlier in this thread), but I want to be able to include an attachment to be sent out with the message.

If you want to send emails with attachments from within Servoy you have to use the mail-plugin.

Then Servoy can’t do what I want it to do, which is a shame.

With the plugin you can download email (pop3) and send email (smtp) any way you want.

like this:

That’s nuts. Why duplicate all that work when you can use Outlook, Thunderbird, Apple Mail, etc?

Can you explain a bit more in detail? What is nuts exactly? And are you saying that because Servoy can natively send and receive email which filemaker can’t it is a shame? Which part is a shame? If you really don’t want Servoy to be capable of sending and receiving email just remove the email plugin and you are all set.

I think he means it’s a shame that Servoy can’t natively send an e-mail to the user’s default mail client with an attachment.

Servoy’s mail features are great, but it would be “greater” to have it the Servoy way and the Filemaker way (natively).

Being a long time FMP developer myself, I can sympathize with your situation. However, just because people are “used to” doing something a certain way, does not necessarily mean that it’s the best or most efficient way.

I’ve found that sending mail via the Server in Servoy and BCCing the recipient achieves the same desired result (which is people have a copy of the email they sent to someone - with the attachment~~).~~
Also, it has helped me to remember that Servoy is NOT FileMaker (thank goodness!). :D

The way Bob describes is also the way I handle it in IT2Print. At first the client was a little afraid of it but the BCC now also acts as a reminder.

I know, I know. Not everybody will accept it but the beauty of Servoy lies in so much other stuff.

Normally you would say (like in a good relationship) ‘it is a matter of give and take’. Well, this partner (Servoy) gives you much more than it takes :)

We use FileMaker’s send through default email client…and HATE it. It is unreliable, especially with a long list of people. I find it to be a bit intrusive. If they are in FileMaker, and want FileMaker to send an email, then FileMaker should send the email, not their email client. We went as far to write an applescript which ran a shell script to send the email in the background.

With Servoy, we are using an email module and the Mail plugin which gives the user a great interface. We also store the emails in a mysql log table. So, the module allows for sending with a form, sending transparent, or viewing the log of emails sent and seeing the details. I posted it for a guy at this post… http://forum.servoy.com/viewtopic.php?t=6453
Its nothing fancy, but works for us.

The beginning of this thread denotes how one can set the various fields (to:, cc:, subject:, body:) in Outlook, et al, via the application.showURL() command.

The format of the example shows how one can set the body of a email.

body=Hello%20Everybody

I would like to know if it is possible to put a return character in the body of the example supplied. The typical ‘\n’ does not seem to work in this case.

I used \r instead of \n and then it worked.

Can’t seem to get ‘\r’ to work. Any ideas?

As far as I recollect a multiline body will not work on a mac (if that is what you are testing on)…

The body of an Outlook message on a PC (Citrix).

To place a return in a body part use: ‘%0A’