Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

CDOSYS + CDONTS >> update to sendmail.asp

Posted on 2004-09-30
4
850 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …

840 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