Solved

CDOSYS + CDONTS >> update to sendmail.asp

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

24 Experts available now in Live!

Get 1:1 Help Now