Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
CDONTS help - desperate!
Old 01-25-2006, 06:19 PM CDONTS help - desperate!
Junior Talker

Posts: 2
Trades: 0
Hi there, this is my first post to this forum. I hope that someone can help me. I am the webmaster for www.camphanover.com and am having trouble with CDONTS with their web host. It just does not seem to be emailing me the information.

I have tried the following html form and script:

==sendmail.htm==
<html>
<head>
<title>Send Mail</title>
</head>

<body bgcolor="#FFFFFF">

<form method="POST" action=”/scripts/sendmail.asp”>
<h3 align="center">CDONTS Send Email Simple Form Example</h3>
<p>To: <input type="text" size="30" name="To"></p>
<p>From: <input type="text" size="30" name="From"></p>
<p>Subject: <input type="text" size="30" name="Sub"></p>
<p>Message Text:<br>
<textarea name="Message" rows="10" cols="80"></textarea></p>
<p align="center"><input type="submit" name="Send"
value="Submit"><input type="reset" name="Cancel"
value="Reset"></p>
</form>
</body>
</html>
==end sendmail.htm==

==sendmail.asp==
<%@ LANGUAGE="VBSCRIPT" %>
<%
Dim objMail, strFrom, strTo, strSubject, strBody
strTo = Trim(Request.Form("To"))
strSubject = Trim(Request.Form("Sub"))
strFrom = Trim(Request.Form("From"))
strBody = Trim(Request.Form("Message"))

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

objMail.From = strFrom
objMail.To = strTo
objMail.Subject = strSubject
objMail.Body = strBody

objMail.Send
Set objMail = Nothing
%>
==end sendmail.asp==


...and this has worked perfectly on another server but they are hosting with GoDaddy.com and for some reason this does not work with their setup. I emailed their customer support and got the following reply...

Thank you for contacting customer support. Unfortunately, we will be unable to assist you with the code of your test site. However, here is an example of a Cdonts script that is currently working with our ASP hosting package with an auto-redirection at the end so that you can compare your code with this one:

< from = request.form("from") email = request.form("to") body = request.form("body") subject = request.form("subject") >

< Dim objMail Set objMail = Server.CreateObject("CDONTS.NewMail") objMail.From = from objMail.Subject = subject objMail.To = email objMail.Body = body objMail.Send Response.redirect "thankyou.asp" <- auto-redirection 'You must always do this with CDONTS. Set objMail = Nothing >


...but I'm not very good with ASP. Can someone PLEASE help me intergrate this code into the form? I would be most grateful.

Basically, I have a much more complicated form 'in the wings' as it were but if I could get it working on their servers I can impliment it without too much difficulty.

Thanks for any help in advance.

Regards

Richard
walianboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-27-2006, 09:38 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
That site is hosted on IIS6.0 (Win2k3) which does not support CDONTS you will need to convert the script, or get one that uses CDOSYS.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-27-2006, 04:46 PM oops, wrong URL
Junior Talker

Posts: 2
Trades: 0
I'm sorry, the URL should be... www.camphanover.org

But you were probably forwarded there anyway.

Thanks

Rich
walianboy is offline
Reply With Quote
View Public Profile
 
Old 01-28-2006, 09:50 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and? ...
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to CDONTS help - desperate!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29770 seconds with 12 queries