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

Postby amason » Thu May 25, 2006 3:14 am

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).
amason
 
Posts: 138
Joined: Mon Jan 16, 2006 12:12 am

Postby bcusick » Thu May 25, 2006 6:46 pm

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[s]).

Also, it has helped me to remember that Servoy is NOT FileMaker (thank goodness!). :D
Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby IT2Be » Thu May 25, 2006 6:57 pm

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 :)
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby sbutler » Fri May 26, 2006 12:15 am

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.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH

Postby Providence1 » Wed Sep 20, 2006 1:41 am

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.
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Postby rarbuthnot » Wed Sep 20, 2006 4:17 pm

I used \r instead of \n and then it worked.
rarbuthnot
 
Posts: 77
Joined: Tue May 02, 2006 8:18 pm
Location: chicago

Postby Providence1 » Wed Sep 20, 2006 6:32 pm

Can't seem to get '\r' to work. Any ideas?
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Postby IT2Be » Wed Sep 20, 2006 8:54 pm

As far as I recollect a multiline body will not work on a mac (if that is what you are testing on)...
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Providence1 » Wed Sep 20, 2006 10:09 pm

The body of an Outlook message on a PC (Citrix).
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

Postby Providence1 » Wed Dec 06, 2006 3:17 am

To place a return in a body part use: '%0A'
Providence
Providence1
 
Posts: 456
Joined: Tue Aug 17, 2004 2:36 am
Location: New York, NY

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

Postby hareendra » Wed Aug 13, 2014 6:44 am

I'm having a problem with this.
I tried using as following:
created a form variable: url
Then assigned it as a data provider to a text field.
Then I created an onAction() method, and set it to a button, with the following code:

url = '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';

application.showURL(url);

It does not work for me. All it does switches tabs in my browser.

Any ideas?

Servoy version 7.4.1

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

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

Postby david » Wed Aug 13, 2014 3:00 pm

If you go to that url in your browser does it work? It not, you don't have a default email client set up.
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 » Thu Aug 14, 2014 7:07 am

Hi,

I tested the url on the browser and it does go to my outlook. So I guess the default email client is setup.

Any more ideas?

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

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

Postby david » Thu Aug 14, 2014 10:57 pm

Tested over here and it works. Alternately, you can pass in a second parameter to target where to open. For example:

Code: Select all
application.showURL('http://www.example.com','_self');
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 15, 2014 9:29 am

Hi,
This
Code: Select all
application.showURL('http://www.example.com','_self');


works for me as well. Its the email url that does not work.

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

PreviousNext

Return to How To

Who is online

Users browsing this forum: No registered users and 3 guests