How do you make an e-mail program where it's just like the web based e-mail and you can send the email to the other person directly off the program?
Printable View
How do you make an e-mail program where it's just like the web based e-mail and you can send the email to the other person directly off the program?
Code:'launch default email program and send mail
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
'form code some button click or whatever
ShellExecute hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, SW_SHOW