|
-
Sep 10th, 2003, 02:23 PM
#1
Thread Starter
Fanatic Member
vbscript email
I would like to allow a user to fill out their name and email in two text boxes and click SUBMIT and this info be emailed to me. I'm having trouble coding the submit onclick event to do this. I searched the forums and found some stuff similar but not quite what I'm doing.
Any help is appreciated,
JO
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
-
Sep 10th, 2003, 02:43 PM
#2
Frenzied Member
Post what you got so far.
-
Sep 10th, 2003, 05:33 PM
#3
Thread Starter
Fanatic Member
VB Code:
function submit1_onclick() {
SendMail(text1.value , "myemailgoeshere", "Reg-vs2", text2.value );
}
Sub SendMail(FromEmail, ToEmail, ToSubject, ToBody)
Set myMail = CreateObject("CDONTS.NewMail")
myMail.From = FromEmail
myMail.To = ToEmail
myMail.Subject= ToSubject
myMail.Body = ToBody
End Sub
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
-
Sep 10th, 2003, 05:50 PM
#4
Frenzied Member
Is it HTML file on each client machine or it will reside on the web server (Intranet, Internet)?
-
Sep 10th, 2003, 10:44 PM
#5
Member
you need to use myMail.send in order to actually send the email
-
Sep 11th, 2003, 09:22 AM
#6
Thread Starter
Fanatic Member
HOLY MOLY!!! myMail.Send
ok, now I feel really stupid - and for good reason!!!
I can't believe I overlooked that.
Thanks for that
JO
"I have not failed. I've just found 10,000 ways that won't work."
'Thomas Edison'
"If we knew what it was we were doing it wouldn't be called research, would it?"
'Albert Einstein'
VB6
-
Sep 12th, 2003, 11:11 AM
#7
Hyperactive Member
did you ever get any errors with permissions when testing this. cos i'm trying to do exctly the same, and i get permision denied on the .send line
-
Sep 12th, 2003, 11:19 AM
#8
Frenzied Member
Last edited by Memnoch1207; Sep 12th, 2003 at 11:24 AM.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
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
|