Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 10th, 2004, 11:00 AM
woohouz woohouz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 woohouz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Getting IE error when trying to use CDONTS email function & inputbox

I am getting an error on the Internet Explorer status bar (little yellow ! followed by message "Error on Page") when i try click submit on this page. Here is the code:

<%@ Language=VBScript %>
<HTML>
<BODY>
<form name="Entry">
<table>

<tr>
<td>
<input class=butn type="submit" value="Submit" onclick="getEmail()" id="btnSubmit" name="btnSubmit"></input>
</td>

</tr>

</table>
<script language="VBscript">
'Start VBScript
Function getEmail()
Dim Inputemail
Dim objMail2

Inputemail = InputBox("Please Input your email")

Set objMail2 = Server.CreateObject("CDONTS.NewMail")

objMail2.From = "techsupport@arms.com"
objMail2.Subject = "A customer has signed up for an AOA class"
objMail2.To = Inputemail
objMail2.Body = "You have a new student signed up in the following AOA class:"

objMail2.Send
Set objMail = Nothing
End Function

</script>
</form>
</BODY>
</HTML>

What I am trying to do is get an email from someone who signs up for an online class by calling the email function when they click submit. It looks simple, but obviously i cant figure this one out...Please help!
Thanks for your time...
woohouz

Reply With Quote
  #2  
Old September 13th, 2004, 09:28 AM
Yeruhn's Avatar
Yeruhn Yeruhn is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Netherlands
Posts: 428 Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level)Yeruhn User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 16 h 35 m 27 sec
Reputation Power: 10
You're combining client and server side stuff.
SERVER.createobject() should be run on the server

Reply With Quote
  #3  
Old September 13th, 2004, 04:40 PM
woohouz woohouz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 woohouz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking Thanks, got it workin'...

Thanks man, i got it figured out.

-woohouz-

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Getting IE error when trying to use CDONTS email function & inputbox


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway