msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Generating a single support E-mail when not having administr

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
tortise



Joined: 04 Oct 2007
Posts: 1

PostPosted: Sat Sep 20, 2003 12:49 pm    Post subject: Generating a single support E-mail when not having administr Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group