Welcome to A1vbcode TheProgrammer. TheProgrammer (5/28/2008) I want to how to send an email to a known address using vbTo send a basic email all you need to use is the ShellExecute API call. Option Explicit
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_SHOW = 5
Private Sub Command1_Click()
ShellExecute Me.hwnd, "open", "mailto:" & "youremail@address" & _ "?subject=" & "Subject Title", vbNullString, vbNullString, SW_SHOW
End Sub
By the way you have posted this in the wrong forum, this is the Game Programming forum, perhaps Admin will move it to General VB.
Keith
I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
|