Keithuk Level: Big Cheese

 Registered: 02-11-2006 Posts: 23
|
Re: HELP ME!!!!!!!
Welcome to AndreaVb kanwarjyot.
Well the easiest way to email in VB is to use 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:" & "youremailaddress"& _
"?subject=" & "Subject Title", vbNullString, vbNullString, SW_SHOW
End Sub
|
If you want to get more involved then do a web search for vbSendMail.dll
____________________________ http://www.martin2k.co.uk/forums/
I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
|