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 :)
Printable View
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 :)
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.
VB Code:
Private Sub Command1_Click() Dim Outlook As New Outlook.Application Dim mail As MailItem Set mail = Outlook.CreateItem(0) With mail .To = "[email protected]" .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 ?Quote:
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 .To = "[email protected]" .Subject = "This Is the Subject" .Body = "This Is the body of email" .Send End With End Sub
Or is that too hard to do ?
Can the same procedure be used with the old MSMail program.
Mega.
couple of things:Quote:
Originally posted by Mega_Man
Can the same procedure be used with the old MSMail program.
Mega.
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.
What about Outlook express
Mega
you want the message to be sent without the user knowing it?Quote:
Originally posted by Icheb
Is it possible to whipe the message from the 'Send mail' too ?
Or is that too hard to do ?
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.
sorry don't know, maybe its possible using MAPI.Quote:
Originally posted by Mega_Man
What about Outlook express
Mega
Have u searched this forum for it?