473,320 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CDONT to CDO

Can someone show me how to modify this simple code from CDONTS to CDO to bring
it up to date?

It works fine now and maybe I should leave it alone?

<%
Dim t1,instructions
t1 = "Instructions"
instructions = Request.Form("instructions")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "hw*****@cox.net"
ObjMail.From = "in**@dinghydogs.com"
ObjMail.Subject = "Dinghy Dogs order"
ObjMail.Body = t1 & vbtab & instructions
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You For Your Order"
%>

--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me
Jul 19 '05 #1
7 2718
For the way to do it with the fewest changes:

Set ObjMail = Server.CreateObject("CDONTS.NewMail")
becomes
Set ObjMail = Server.CreateObject("CDO.Message")

ObjMail.Body = t1 & vbtab & instructions
becomes
ObjMail.TextBody = t1 & vbtab & instructions

See http://www.aspfaq.com/show.asp?id=2026 for more detailed informaton on
CDO. And good job switching! :]

Ray at home

"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
Can someone show me how to modify this simple code from CDONTS to CDO to bring it up to date?

It works fine now and maybe I should leave it alone?

<%
Dim t1,instructions
t1 = "Instructions"
instructions = Request.Form("instructions")
Dim ObjMail
Set ObjMail = Server.CreateObject("CDONTS.NewMail")
ObjMail.To = "hw*****@cox.net"
ObjMail.From = "in**@dinghydogs.com"
ObjMail.Subject = "Dinghy Dogs order"
ObjMail.Body = t1 & vbtab & instructions
ObjMail.Send
Set ObjMail = Nothing
Response.Write"Thank You For Your Order"
%>

--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me

Jul 19 '05 #2
In article <ON**************@TK2MSFTNGP10.phx.gbl>,
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote:
See http://www.aspfaq.com/show.asp?id=2026 for more detailed informaton on
CDO. And good job switching! :]


Thanks for the references. They are way to detailed for my modest requirements
though, getting too far under the hood for my needs. They assume in know much
more than I do. I need more of what you showed me and couldn't find anything
that basic.

Thanks.
--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me
Jul 19 '05 #3
You don't have to read the whole article if you aren't interested in sending
attachments or anything.

Set cdoMessage = CreateObject("CDO.Message")

With cdoMessage
Set .Configuration = cdoConfig
.From = "fr**@me.com"
.To = "to@me.com"
.Subject = "Sample CDO Message"
.TextBody = "This is a test for CDO.message"
.Send
End With

Set cdoMessage = Nothing

That's as undetailed as it'll be. If you don't know as much as "they"
assume you do, then you have to work to know more!

Ray at home


"Harvey Waxman" <hw*****@thefrowncox.net> wrote in message
news:hw***************************@msnews.microsof t.com...
In article <ON**************@TK2MSFTNGP10.phx.gbl>,
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote:
See http://www.aspfaq.com/show.asp?id=2026 for more detailed informaton on CDO. And good job switching! :]
Thanks for the references. They are way to detailed for my modest

requirements though, getting too far under the hood for my needs. They assume in know much more than I do. I need more of what you showed me and couldn't find anything that basic.

Thanks.
--
Harvey Waxman DMD
73 Wright Lane
Wickford, RI 02852
Remove thefrown to email me

Jul 19 '05 #4
In article <#f**************@TK2MSFTNGP12.phx.gbl>,
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote:
That's as undetailed as it'll be. If you don't know as much as "they"
assume you do, then you have to work to know more!


Once again, thanks.

I have nothing to do with the server folks. I have a modest website and wanted
to have email forwarded to me without using mailto:

I was told that asp was what I needed and since the server that hosts my site
is a Windows NT (I use Macs) I found a CDONTS asp script that I modified for my
own use.

That's as far as my needs go or will go. I'm even unsure what the 'undetailed'
script in your last post was for.

Regards
Harvey

--
Harvey Products makers of Dinghy Dogs
The Boater's Best Friend
http://www.dinghydogs.com
Remove thefrown to email me
Jul 19 '05 #5
> I'm even unsure what the 'undetailed' script in your last post was for.

It was the minimal code you needs for a CDO mail script (to replace your
CDONTS one)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
Harvey Waxman <in**@dinghydogs.comthefrown> wrote in message
news:in************************@msnews.microsoft.c om...
In article <#f**************@TK2MSFTNGP12.phx.gbl>,
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote:
That's as undetailed as it'll be. If you don't know as much as "they"
assume you do, then you have to work to know more!
Once again, thanks.

I have nothing to do with the server folks. I have a modest website and

wanted to have email forwarded to me without using mailto:

I was told that asp was what I needed and since the server that hosts my site is a Windows NT (I use Macs) I found a CDONTS asp script that I modified for my own use.

That's as far as my needs go or will go. I'm even unsure what the 'undetailed' script in your last post was for.

Regards
Harvey

--
Harvey Products makers of Dinghy Dogs
The Boater's Best Friend
http://www.dinghydogs.com
Remove thefrown to email me

Jul 19 '05 #6
If you're on NT, you cannot use CDO. CDO first appeared in Windows 2000.
It's unlikely/unhopeful that you're still on an NT 4 server though. Find
out for sure. If NT, use CDONTS. If 2000 or higher, use CDO.

Ray at home

"Harvey Waxman" <in**@dinghydogs.comthefrown> wrote in message
news:in************************@msnews.microsoft.c om...
In article <#f**************@TK2MSFTNGP12.phx.gbl>,
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote:
That's as undetailed as it'll be. If you don't know as much as "they"
assume you do, then you have to work to know more!
Once again, thanks.

I have nothing to do with the server folks. I have a modest website and

wanted to have email forwarded to me without using mailto:

I was told that asp was what I needed and since the server that hosts my site is a Windows NT (I use Macs) I found a CDONTS asp script that I modified for my own use.

That's as far as my needs go or will go. I'm even unsure what the 'undetailed' script in your last post was for.

Regards
Harvey

--
Harvey Products makers of Dinghy Dogs
The Boater's Best Friend
http://www.dinghydogs.com
Remove thefrown to email me

Jul 19 '05 #7
In article <eC**************@TK2MSFTNGP09.phx.gbl>,
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote:
If 2000 or higher, use CDO.


It is Windows 2000. I would still like to see a list of the statements in
CDONTS and their CDO counterparts, if there is such a list.

I am passing the data from a form to the email so it's more than simple text
email. I posted the abbreviated code last time. and there were only two
changes if I recall.

--
Harvey Products makers of Dinghy Dogs
The Boater's Best Friend
http://www.dinghydogs.com
Remove thefrown to email me
Jul 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: michaaal | last post by:
I have used both CDOs and CDONTS to send mail via ASP. To me they seem like they are the same thing, however, judging from other people's comments they are different. What are the differences?
1
by: Mark | last post by:
When a form is filled in on my website it is sent to the below .asp page. I want the information from the form to be sent to me, which it does, but I would also like a confirmation email to be sent...
1
by: Gonzosez | last post by:
I keep getting permission denied error when I do objCDO.Send. I know that there is a permission that has to be set to allow this to happen but i don't remember. Help
1
by: Simon Wigzell | last post by:
I'm generating HTML formatted emails in my asp program using CDONT. Depending on hoow ling the link is it will sometimes wrap and ruin the link. The is Detail email properties listing : ...
1
by: Simon Wigzell | last post by:
I send HTML formatted emails with links and images in them generated by my asp driven website. Occasionally the image will not appear and the link will not work. By looking at the email at the...
2
by: Rajiv | last post by:
hi all , i have to send the mail to all the employees of the company , e-mail address is stored in a table . i m using cdont component to send the mail , what are the basic requirement of...
11
by: Simon Wigzell | last post by:
My website sends automatic emails from many (25) different places. I want to send a second email by reading the parameters of the first one. I don't want to have to repeat and maintain the...
1
by: Simon Wigzell | last post by:
Is it possible to extract from a CDONT a value that has been added to it? e.g. can I say: MyCDONTSMail.From="some email address" MyCDONTSMail.To="some other email address"...
1
by: bijuvellur | last post by:
why the mail goes to bulk? when we use ASP code using CDONT mail object
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.