borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (search) New Topic New Poll Post Reply
AndreaVB Forum : VB General : HELP ME!!!!!!!
Poster Message
kanwarjyot
Level: Trainee

Registered: 25-08-2008
Posts: 1

icon HELP ME!!!!!!!

Hi, I am new to VB6 and I am teaching myself. I Would
like to make an emailer that would email me like when a person puts in there info it goes to my gmail account how do i do that!!? With my email never being exposed..just needs to be simple
Pic below

[Edited by kanwarjyot on 25-08-2008 at 02:36 AM GMT]

____________________________
Attached:
824200873017PM.jpg 14 KB (Downloads: 3)

25-08-2008 at 02:35 AM
View Profile Send Email to User Show All Posts | Quote Reply
Keithuk
Level: Big Cheese


Registered: 02-11-2006
Posts: 23
icon 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.

15-09-2008 at 11:46 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB General : HELP ME!!!!!!!
Next Topic (search) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder