Aimyee
asked on
What is the best way to have my vb application send email using the end users default email program.
Thank you!
Thank you!
http://cyberchute.com/rvbus/madmark/mapimail.txt
ASKER
Hi, I'm just wondering.... I've used this method but I thought it just worked if you are using Outlook? Or does the MAPI work with any email application?
ASKER
Hi, I'm just wondering.... I've used this method but I thought it just worked if you are using Outlook? Or does the MAPI work with any email application?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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_SHOW = 5
'''''''''''''''''''''''''' '''''''''' '''''''''' '''''''
ShellExecute hwnd, "open", "mailto:vbcode@vbcode.com" , _
vbNullString, vbNullString, SW_SHOW
"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_SHOW = 5
''''''''''''''''''''''''''
ShellExecute hwnd, "open", "mailto:vbcode@vbcode.com"
vbNullString, vbNullString, SW_SHOW
ASKER
Okay Thanks! I'll continue to use it then.