>I've been playing with the ScriptersScrapBook found at Flexible Learning and 
>was wondering if the openInternetApp handler is meant to actually open a new 
>mail form with the specified address. I have outlook express on my computer 
>(I never use it) and find that the handler, whilst working perfectly for the 
>web browser, opens outlook express but not a new mail form and there is no 
>reference to tAddress. Is there a way to specify to outlook that you want to 
>compose new mail for a specific address. I'm pretty sure its possible 
>because web sites often open the new mail form. If anyone can help me with 
>this it would be great otherwise I'll just tell the user to send email to 
>tAddress

Try this to launch an email... (Although I get spurious quote mark at the
end end of the address)

on mailto tAddress,tSubject
  put word 1 to -2 of queryRegistry
("hkey_local_machine\software\classes\mailto\shell\open\command\") into
tBrowserPath
  if tBrowserPath is not empty then
    if tSubject <> "" then
       launch "mailto:"&tAddress & "?subject=" & tSubject with tBrowserPath
    else launch "mailto:"&tAddress with tBrowserPath
    if the result <>"" then
      get smartAnswer("Process already open","Please close your eMail
program, then try again.","OK")
    end if
  else get smartAnswer("E-mail to"&&tAddress,"Sorry, I cannot identify your
default e-mail program. Please send e-mail manually.","OK")
end mailto

/H

Hugh Senior

The Flexible Learning Company
Consultant Programming & Software Solutions
Fax/Voice: +44 (0)1483.27 87 27
Email: [EMAIL PROTECTED]
Web: www.flexibleLearning.com

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to