VB Code:
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
Dim strSubject As String: strSubject = "Test E-Mail"
Dim strBody As String: strBody = "This is a test. " & "Blah"
ShellExecute 0&, vbNullString, _
"mailto:" & strAddress & _
"?subject=" & strSubject & _
"&body=" & strBody, vbNullString, "C:\", vbNormal
'Can also add an attachment using:
'& "&attach=" & Chr(34) & strFileName & Chr(34)
That shows that attachment names have " (Chr34) around them. Also, you may need more " in your example....