SantaTheOriginal
Jul 28th, 1999, 01:42 PM
I'm looking for a way to launch the default e-mail client using a simple command button.
Any tips on how to achieve this?
vbsquare
Jul 28th, 1999, 07:33 PM
You will need to use the ShellExecute API:
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Call it like this:
ShellExecute me.hwnd, "OPEN", "mailto:yourmail","",App.path,1
CarlosTheJackal
Jul 29th, 1999, 10:05 AM
Hey-If you are trying to open a new message in the default email client to be sent to a certain address,there is a simple code to do this:
Shell "Start Mailto:Whoevr@Wherever.Whatever"
This takes no special declarations, etc.
Hope this helps!
CarlosTheJackal