|
-
Jul 30th, 2001, 04:52 AM
#1
E-mail me info.
I know this has been asked before but i'm pretty sure an answer wasn't gained. So heres what I want:
I want the user to type in some info press ok and then the info the user just entered will be e-mailed to me.
Simple as that
-
Jul 30th, 2001, 05:04 AM
#2
Lively Member
Visit http://www.vbforums.com/showthread.p...threadid=76836.
There I have posted code to send e-mails using SMTP. You just have to use this code and hide all the controls.
-
Jul 30th, 2001, 05:07 AM
#3
-= B u g S l a y e r =-
VB Code:
Private Sub Command1_Click()
Dim Outlook As New Outlook.Application
Dim mail As MailItem
Set mail = Outlook.CreateItem(0)
With mail
.Subject = "This Is the Subject"
.Body = "This Is the body of email"
.Send
End With
End Sub
-
Jul 30th, 2001, 07:14 AM
#4
Addicted Member
Originally posted by peet
VB Code:
Private Sub Command1_Click()
Dim Outlook As New Outlook.Application
Dim mail As MailItem
Set mail = Outlook.CreateItem(0)
With mail
.Subject = "This Is the Subject"
.Body = "This Is the body of email"
.Send
End With
End Sub
Is it possible to whipe the message from the 'Send mail' too ?
Or is that too hard to do ?
The main VB routine in Windows XP (The don't admit it, they wrote it in VB)
[vbcode]
Public Sub Windows_Load()
a = 1
b = 2
if not a + b = 2 then
goto crash
end if
goto crash
End Sub
[/vbcode]
-
Jul 30th, 2001, 07:16 AM
#5
Frenzied Member
Can the same procedure be used with the old MSMail program.
Mega.
"If at first you don't succeed, then skydiving is not for you"
-
Jul 30th, 2001, 07:24 AM
#6
-= B u g S l a y e r =-
Originally posted by Mega_Man
Can the same procedure be used with the old MSMail program.
Mega.
couple of things:
1. Outlook has to be installed if u want to use this tecnique.
2. will work for outlook 98 and outlook 2000 (for other versions i don't know.
-
Jul 30th, 2001, 07:27 AM
#7
Frenzied Member
What about Outlook express
Mega
"If at first you don't succeed, then skydiving is not for you"
-
Jul 30th, 2001, 07:29 AM
#8
-= B u g S l a y e r =-
Originally posted by Icheb
Is it possible to whipe the message from the 'Send mail' too ?
Or is that too hard to do ?
you want the message to be sent without the user knowing it?
then I think u should use the sample code provided by floppes.
The message is not sent automatically from outlook if the user havent set the "send at once" property. if he hasn't, it will stay put in the outbox untill the user presses send/receive.
it is probl. possible to delete the message from the sent items folder. I don't know how though.. sorry.
-
Jul 30th, 2001, 07:43 AM
#9
-= B u g S l a y e r =-
Originally posted by Mega_Man
What about Outlook express
Mega
sorry don't know, maybe its possible using MAPI.
Have u searched this forum for it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|