How can I call outlook express (my default email client) from a VFP8 form so
that the 'to' field contains the email address which is contained in a field
on the VFP8 form.

thank you.

Shmiel.

P.S. I do know how to call a specifiuc web page with the hyperlink control
but not an email client.

Re: email by Sietse

Sietse
Mon May 24 03:16:53 CDT 2004

You cqan use the Hyperlink class using the NavigateTo method passing an
mailto:url like this:
oNav = CREATEOBJECT("hyperlink")
oNav.NavigateTo("mailto:sietse.wijnker@sw-software.nl")

Problem here is that IE (or your default browser) gets started prior to the
new email window (and I don't know of a workaround for that while using the
Hyperlink class).
Another possibility is using the ShellExecute API call:

DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
Integer nWinHandle,;
String cOperation,;
String cFileName,;
String cParameters,;
String cDirectory,;
Integer nShowWindow

ShellExecute(0, "open",
"mailto:sietse.wijnker@sw-software.nl?subject=MailTest&cc=info@sw-software.n
l&body=Request for info&bcc=me@somewhere.com","","",1)

(Mark the possibility to fill in additional fields like cc, bcc, subject and
body using rthe querystring of the mailto:url ! Nice eh?)
This won't open an additional IE browser window

HTH,
Sietse Wijnker


"Shmiel" <shmiel@tiscali.co.uk> wrote in message
news:40b1a97d$1_1@mk-nntp-2.news.uk.tiscali.com...
> How can I call outlook express (my default email client) from a VFP8 form
so
> that the 'to' field contains the email address which is contained in a
field
> on the VFP8 form.
>
> thank you.
>
> Shmiel.
>
> P.S. I do know how to call a specifiuc web page with the hyperlink control
> but not an email client.
>
>