![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2005
Posts: 7
Rep Power: 0
![]() |
I want to make a simple Email link (like a mailto link in HTML) in vb6 that will open a new message in the default mail client with the email address and subject
Last edited by bigbondfan; Jun 1st, 2005 at 7:52 AM. Reason: solved |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Do you mean a button/label on a form? If so, you can activate mailto links using the normal shell api (the run command):
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
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
ShellExecute Me.hwnd, vbNullString, "mailto:bill@microsoft.com?subject=Your software sucks", vbNullString, "%SystemRoot%", SW_SHOWNORMAL
End Sub |
|
|
|
|
|
#3 |
|
Newbie
Join Date: May 2005
Posts: 7
Rep Power: 0
![]() |
Thanks very much
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|