If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > email page not working

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-04, 13:13
NewfieBullet NewfieBullet is offline
Registered User
 
Join Date: Mar 2004
Posts: 51
Question email page not working

I have an email page set up and when the person completes the form it connects to another page which sends it aand give message that the page was send, but i am getting an error of invalid class string " Set mail = Server.CreateObject("CDONTS.NewMail")%>" not really sure why

any suggestions??

Newfiebullet
Reply With Quote
  #2 (permalink)  
Old 06-25-04, 15:11
vextout vextout is offline
Registered User
 
Join Date: Jan 2003
Location: New York
Posts: 160
do you have a smtp engine installed ?
__________________
Beyond Limitation
Reply With Quote
  #3 (permalink)  
Old 06-28-04, 08:09
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
http://www.asp101.com/samples has some good e-mail examples such as the e-mail attachment example which uses the newer CDO (instead of the outmoded CDONTS).
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #4 (permalink)  
Old 06-30-04, 08:21
NewfieBullet NewfieBullet is offline
Registered User
 
Join Date: Mar 2004
Posts: 51
Hello: Thanks for the response

I am running windows xp pro, and is just testing the web page locally but no luck and i read that CDONTS is make for windows server nt or 2000 is there any differnce between xp and 2000, here is some of the code

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
dim Message

Set mail = Server.CreateObject("CDONTS.NewMail")%>
mail.From = request("txtEmail")
mail.To = "XXX@health.com
mail.Subject = "Services Database"
mail.Body = Message
mail.Send
Set mail = Nothing
This is only the main lines

Should the CDONTS work with XP


Newfiebullet
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On