Solved

CDOSYS + CDONTS >> update to sendmail.asp

Posted on 2004-09-30
4
844 Views
Last Modified: 2008-01-09
Hi. I was using a sendmail.asp form on a windows host without any problems for the last couple of years, suddenly stopped working. When I contacted the host, I was told that they are no longer using CDONTS, because they have upgraded to Windows server 2003. I was told that I would need to update my code for "CDOSYS".

Can you help please?

Here is the existing code for the sendmail.asp:

<%
response.buffer = true
message = "The following data was submitted:"
message = message & vbcrlf & vbcrlf
for each item in request.form
message = message & item & ": " & request.form(item) & vbcrlf
next
set mailer = server.createobject("CDONTS.NewMail")
mailer.subject = "Email Address Updates"
mailer.from = request.form("email")
mailer.to = "me@mysite.com" '<---Put your email address here
mailer.body = message
mailer.send
set mail = nothing
response.redirect("http://www.mysite.com/thanks.htm")
%>
 
In advance, many thanks for your help.
0
Comment
Question by:mharcais
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
MikeMiller earned 200 total points
ID: 12195572
0
 

Author Comment

by:mharcais
ID: 12217225
Hi Mike,

I'm afraid I have tested the code on that link, but it throws back an error. I complains about the cdo.message line, in even the most basic of the examples on that page.

Are you aware of an up to date sendmail.asp for CDO.message instead of CDONTS?

0
 
LVL 3

Expert Comment

by:MikeMiller
ID: 12221615
what is the error?
0
 

Author Comment

by:mharcais
ID: 12221768
CDO.Message.1 error '80040213'

The transport failed to connect to the server.

/sendmail_tsleads2.asp, line 18
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dynamic? Dropdown Box 29 71
Visual Project Bridge error 5 71
SQL to update characters in table column 6 98
Microsoft SQL ADO Conn Issue 6 41
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now