Link to home
Start Free TrialLog in
Avatar of Aimyee
Aimyee

asked on

Email

What is the best way to have my vb application send email using the end users default email program.

Thank you!
Avatar of Mirkwood
Mirkwood

Avatar of Aimyee

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?
Avatar of Aimyee

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
Avatar of Mirkwood
Mirkwood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
Avatar of Aimyee

ASKER

Okay Thanks!  I'll continue to use it then.