Normal Topic @Asynching email in Outlook Express (Read 797 times)
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
@Asynching email in Outlook Express
Jun 4th, 2005 at 10:03pm
Print Post Print Post  
Hi All,

Bharat had posted some code as thus:

var Outlook_Exp_Path as string 
var OutLook_failure as Int 
 
Outlook_Exp_Path = @Chr(34) + "C:\Program Files\Outlook Express\msimn.exe" + @Chr(34) 
 
IF Email <>"" THEN   
   OutLook_failure = @Shell(Outlook_Exp_Path + " " + "/mailurl:mailto:" + Email)   
IF NOT OutLook_failure = 0 THEN   
   @Msg("Couldn't open Outlook Express")   
// @Shell returns a 0 if it is successful, a 1 if it fails   
 
/* Email is the Name of the Element which stores e-mail address, you might have to replace that as per the name you have given for that element */ 

However, it creates a DOS box that's unsightly.  I'm trying to get @Asynchshell to run Outlook Express, but it doesn't like the program flag /mailurl:mailto: part.  Anyone have some suggestions?

Blair
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: @Asynching email in Outlook Express
Reply #1 - Jun 5th, 2005 at 4:02pm
Print Post Print Post  
Hello Blair,

@ASynchShell() does not accept parameters to be passed to the executable. It can however depending on your computer launch your default e-mail client with the following code.

Code
Select All
vSuccess = @ASynchShell("Mailto:" + EMail) 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Blair Wettlaufer
Junior Member
Members
**
Offline


No personal text

Posts: 98
Location: Hamilton, ON
Joined: Jun 4th, 2005
Re: @Asynching email in Outlook Express
Reply #2 - Jun 5th, 2005 at 4:28pm
Print Post Print Post  
Well, that removed a whole lot of code!  Embarrassed

Thanks!
  

Coesper erat: tunc lubriciles altravia circum&&Urgebant gyros gimbiculosque tophi:&&Moestenui visae borogovides ire meatu:&&Et profugi gemitus exgrabuere rathae
Back to top
 
IP Logged