Hi
What code do I need to set up so that users can send E-mail from within
their logged on "secure" areas by the click of a button to a specified
E-Mail address. Perhaps with subject and body also completed? My code
works fine for administrators, but for users it fails in both Outlook and
Outlook Express. This is testing under XP. The code line with the problem
is:
Call RunShellExecute("open", mailto:xxx@yyyyy.com?subject=ZZZZZ & eSubject,
0&, 0&, 10)
and....
Public Sub RunShellExecute(sTopic As String, sFile As Variant, _
sParams As Variant, sDirectory As Variant, nShowCmd As Long)
Dim hWndDesk As Long
Dim success As Long
Const SE_ERR_NOASSOC = &H31
'the desktop will be the default for error messages
hWndDesk = GetDesktopWindow()
'execute the passed operation
success = ShellExecute(hWndDesk, sTopic, sFile, sParams, sDirectory,
nShowCmd)
End Sub
The obvious explanation is that there is a user file access prblem from
security, however the user E-mail apps open fine, so I am not convinced that
is where the problem arises. This is in vb5.
TIA
David
Archived from group: microsoft>public>vb>enterprise