Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using ShellExecute to send a GroupWise e-mail
Message
From
15/05/2000 14:16:19
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00368594
Message ID:
00369718
Views:
11
>Bill,
>
>There's an article on my website showing all the named items that the MS mailto: target support. You should be able to find the some documentation on the Groupwise version from them.
>
>
>>lcMailTo = "mailto:" + ALLT(lcRecipient) + IIF(NOT EMPTY(lcSubject), "?subject=" + lcSubject, "")
>>
>>This works fine for Outlook or Outlook Express. However when we try to do this on a machine that is using GroupWise as their e-mail client (which has a FROM field as well as a TO field), the mailto address winds up in the FROM: field, and the subject winds up in the TO: field. I've been handed the responsibility of correcting this problem, but I'm not even close to a Win32API expert.
>>
>>Is there any way that I can force the mailto: address into the TO field, regardless of wheter I am using Outlook or GroupWise (or Lotus Notes, for that matter), or pass an optional from: field that will be ignored if the e-mail client (Outlook) does not make use of it? If not, is there an easy way (i.e., redesigning the e-mail utility with WestWind's tools are not an option) that I can detect what my e-mail client is, and then create my lcMailTo variable accordingly?


David,

I checked your site and looked at article qGEN017. It will work fine for an Outlook or Outlook Express client, but still doesn't allow me to specify the FROM clause, which is necessary for GroupWise. Just like my old code, it puts the TO address in the FROM field, the SUBJECT in the TO field, etc.

Has anyone worked with GroupWise before in sending e-mail from VFP? I can't believe I'm the only one who has run into this problem.

Bill
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform