VB Code:
'VB6 Example
Option Explicit
Private 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
Private Const SW_SHOWNORMAL As Long = 1
Private Sub Command1_Click()
'Use Application.hWnd when using with Excel instead of Me.hwnd
ShellExecute Me.hwnd, "Open", "mailto:
[email protected]?subject=Email Test&Body=This is the body.", vbNullString, "C:\", SW_SHOWNORMAL
End Sub