Solved

CDOSYS + CDONTS >> update to sendmail.asp

Posted on 2004-09-30
4
859 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
[X]
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
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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 was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 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