Please can someone offer some advice on the following:

I'm used to creating simple html comments forms which usually work via
FormMail, however I am currently working on a site whose host doesn't
support FormMail. The have advised me to create an asp form with
CDONTS as the host space for the site is a windows server.

All my form needs to do is collect Name, Email and comment and send it
to the recipient (with a redirect to a thankyou page).

I have never created anything like this before and whilst I'm finding
lots of references to CDONTS and various Form examples, I'm a bit
baffled as to where to start. I tried following a tutorial but when I
uploaded the form it didn't send (although there was no error).

I've found reference to both CDONTS and CDOs - and have grasped that
CDOs is the newer version - how do i know which to use? Can someone
explain in basic terms for a non techie how this works? How safe are
these forms and are their any potential drawbacks to using this form
of scripting for a contcat form?

I'd be really grateful for some pointers!

Cheers

Vic

Re: Cdo or Cdonts - help! by McKirahan

McKirahan
Mon Dec 06 16:20:38 CST 2004

"vic Buckett" <vicb@public-impact.com> wrote in message
news:2b43744f.0412061350.3d6f12f6@posting.google.com...
> Please can someone offer some advice on the following:
>
> I'm used to creating simple html comments forms which usually work via
> FormMail, however I am currently working on a site whose host doesn't
> support FormMail. The have advised me to create an asp form with
> CDONTS as the host space for the site is a windows server.
>
> All my form needs to do is collect Name, Email and comment and send it
> to the recipient (with a redirect to a thankyou page).
>
> I have never created anything like this before and whilst I'm finding
> lots of references to CDONTS and various Form examples, I'm a bit
> baffled as to where to start. I tried following a tutorial but when I
> uploaded the form it didn't send (although there was no error).
>
> I've found reference to both CDONTS and CDOs - and have grasped that
> CDOs is the newer version - how do i know which to use? Can someone
> explain in basic terms for a non techie how this works? How safe are
> these forms and are their any potential drawbacks to using this form
> of scripting for a contcat form?
>
> I'd be really grateful for some pointers!
>
> Cheers
>
> Vic

CDO is a server-side technology requiring an SMTP server used in ASP pages.

Here's an untested example:

Dim objCDO
Set objCDO = CreateObject("CDO.Message")
objCDO.From = "me@aol.com"
objCDO.To = "you@aol.com"
objCDO.Subject = "TEST"
objCDO.TextBody = "Hello World"
objCDO.Send
Set objCDO = Nothing



Re: Cdo or Cdonts - help! by Torgeir

Torgeir
Tue Dec 07 01:40:56 CST 2004

vic Buckett wrote:

> Please can someone offer some advice on the following:
>
> I'm used to creating simple html comments forms which usually work via
> FormMail, however I am currently working on a site whose host doesn't
> support FormMail. The have advised me to create an asp form with
> CDONTS as the host space for the site is a windows server.
>
> All my form needs to do is collect Name, Email and comment and send it
> to the recipient (with a redirect to a thankyou page).
>
> I have never created anything like this before and whilst I'm finding
> lots of references to CDONTS and various Form examples, I'm a bit
> baffled as to where to start. I tried following a tutorial but when I
> uploaded the form it didn't send (although there was no error).
>
> I've found reference to both CDONTS and CDOs - and have grasped that
> CDOs is the newer version - how do i know which to use?
Hi

CDONTS has been deprecated in WinXP (and in Win2k3 Server as well I
guess), you should use CDO.Configuration/CDO.Message instead (works
in Win2k as well), more about this here:

How do I send e-mail with CDO?
http://www.aspfaq.com/show.asp?id=2026


Sending e-mail with CDO
http://www.paulsadowski.com/WSH/cdo.htm


Some CDO info here as well:

Sending mail from Excel with CDO
http://www.rondebruin.nl/cdo.htm


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Re: Cdo or Cdonts - help! by kangas

kangas
Fri Dec 10 16:54:04 CST 2004

I've been working on an app that sends email notifications. I've been
working on XP, and it doesn't have CDONTS - that's a server-based
version. There is a CDO, but it has been intentionally hobbled by MS
because of their concern with virus writers send off email, so woe is
you if you want to send email in a scheduled task... Shouldn't be a
problem for you, though.

Just google "CDO" and you'll find many good examples. I'm not positive,
but I think that the major difference is that one of them (I think CDO)
uses SMTP exclusively and CDONTS can specify other mechanisms.

-Jim


vic Buckett wrote:
> Please can someone offer some advice on the following:
>
> I'm used to creating simple html comments forms which usually work
via
> FormMail, however I am currently working on a site whose host doesn't
> support FormMail. The have advised me to create an asp form with
> CDONTS as the host space for the site is a windows server.
>
> All my form needs to do is collect Name, Email and comment and send
it
> to the recipient (with a redirect to a thankyou page).
>
> I have never created anything like this before and whilst I'm finding
> lots of references to CDONTS and various Form examples, I'm a bit
> baffled as to where to start. I tried following a tutorial but when I
> uploaded the form it didn't send (although there was no error).
>
> I've found reference to both CDONTS and CDOs - and have grasped that
> CDOs is the newer version - how do i know which to use? Can someone
> explain in basic terms for a non techie how this works? How safe are
> these forms and are their any potential drawbacks to using this form
> of scripting for a contcat form?
>
> I'd be really grateful for some pointers!
>
> Cheers
>
> Vic