Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email..
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00564281
Message ID:
00564625
Views:
20
Yeah, that's it. I couldn't recall the exact way, but was thinking it had something to do with ShellExecute API.

>You dont need to envoke Internet Explorer
>just Shellexecute.
>mailto:my can be run from the start run. Loads up the email app, defined in the internet propertites of the computer.
>download the sh_execute class
>then something like this.
>
>os=create("sh_execute")
>m_cmd ='mailto:me@myserver.com?cc:bobl@1amsoftware.com&subject='test subject'
>os.shellexecute(m_cmd)
>
>Thats it. starts your email program, addresses it, puts in a subject.
>add something like
>&body='my email body' into the command string, and you have a body for the email as well.
>Hope this helps.
>
>Bob Lee
>
>
>
>
>
>>>thanks
>>>i already have outlook working but i wont always know what the user default email program they are using
>>>fc
>>
>>You might be able to do this automating internet explorer like so:
>>
oIE = CreateObject("InternetExplorer.Application")
>>oIE.Navigate2("mailto:")
>>I believe there is also another way of invoking the default mail client, I don't recall at this time.
>>
>>Also you can roll your own form with the required fields and use this MAPI class from the UT downloads: http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,54,Forum=5,28,1034
>>This way you don't need to know what the default client is.
>>(sorry that previous post went before I intended it to)
>>HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform