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

HOW TO: open the default email client cross-platform

Postby Harjo » Tue Nov 18, 2003 1:08 pm

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:[email protected][email protected],[email protected][email protected][email protected]&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?
Last edited by Harjo on Tue Nov 18, 2003 4:00 pm, edited 2 times in total.
User avatar
Harjo
 
Posts: 4269
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby IT2Be » Tue Nov 18, 2003 3:46 pm

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

It doesn't work on Linux client (with OS X server)...
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: 4763
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby ROCLASI » Tue Nov 18, 2003 4:04 pm

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
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby IT2Be » Tue Nov 18, 2003 5:04 pm

Well, probably you are right but 'mailto:whasoever' works like expected from within the browser...
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: 4763
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby ROCLASI » Mon Nov 24, 2003 9:05 pm

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?
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5205
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Postby IT2Be » Mon Nov 24, 2003 9:46 pm

third party: KMail...
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: 4763
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Harjo » Mon Nov 24, 2003 9:58 pm

Does anybody know, how to add an attachment in the mailto-function?
User avatar
Harjo
 
Posts: 4269
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby IT2Be » Mon Nov 24, 2003 10:17 pm

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.
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: 4763
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Harjo » Tue Nov 25, 2003 12:24 am

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
User avatar
Harjo
 
Posts: 4269
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Aleman » Tue Nov 25, 2003 1:29 am

I havn't seen any that will work with Outlook. Why don't you use a bean like ezSMTP?
Jan Aleman
Servoy
Jan Aleman
Site Admin
 
Posts: 2071
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Harjo » Tue Nov 25, 2003 9:14 am

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.
User avatar
Harjo
 
Posts: 4269
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby admin » Tue Nov 25, 2003 9:54 am

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
admin
Site Admin
 
Posts: 72
Joined: Wed Apr 23, 2003 4:29 pm

Postby IT2Be » Tue Nov 25, 2003 12:59 pm

That's exactly what I suggested my customers. They accept and, after thinking about it, even like this...
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: 4763
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby rarbuthnot » Wed May 24, 2006 9:17 pm

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?
rarbuthnot
 
Posts: 77
Joined: Tue May 02, 2006 8:18 pm
Location: chicago

Postby Harjo » Wed May 24, 2006 9:38 pm

not possible!
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4269
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Next

Return to How To

Who is online

Users browsing this forum: No registered users and 2 guests

cron