Anyone has some better code examples on how to open outlook from a
vb application (I guess outlook.exe) and pass in an attachment? This is the code I have. Not sure if this is a good solution or not. Now I need to pass an attachment
Code:
Private Sub Email_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Email.Click
Dim dblRetVal As Double
Try
dblRetVal = Shell("C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE", vbMaximizedFocus)
Catch ex As Exception
ErrorString = ex.ToString
ConnectionError = True
MsgBox("An error has been encountered trying to access Outlook " + vbCrLf + ErrorString)
End Try
End Sub