I am needing to click a button which send some parameters to a function which opens the users default email program and creates a new message.

The code I'm using does this just fine, the only problem is I cannot figure out what the parameter would be in order to attach a file.

Here is what I am using...
VB Code:
  1. Public Function OpenEmail(ByVal EmailAddress As String, _
  2.                               Optional ByVal Subject As String = "", _
  3.                               Optional ByVal Body As String = "", _
  4.                               Optional ByVal Attachment As String = "") As Boolean
  5.  
  6.         Dim bAnswer As Boolean = True
  7.         Dim sParams As String
  8.  
  9.         sParams = EmailAddress
  10.  
  11.         If LCase(Strings.Left(sParams, 7)) <> "mailto:" Then _
  12.             sParams = "mailto:" & sParams
  13.  
  14.         If Subject <> "" Then _
  15.             sParams = sParams & "?subject=" & Subject
  16.  
  17.         If Body <> "" Then
  18.             sParams = sParams & IIf(Subject = "", "?", "&")
  19.             sParams = sParams & "body=" & Body
  20.  
  21.             '****** What is the parameter for attaching a file??
  22.             sParams = sParams & "attachment=" & Attachment
  23.  
  24.         End If
  25.  
  26.         Try
  27.             System.Diagnostics.Process.Start(sParams)
  28.         Catch
  29.             bAnswer = False
  30.         End Try
  31.  
  32.         Return bAnswer
  33.  
  34.     End Function
Could someone please help?!

Thanks
CC