CDOSYS + CDONTS >> update to sendmail.asp
Posted on 2004-09-30
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
set mailer = server.createobject("CDONTS.NewMail")
mailer.subject = "Email Address Updates"
mailer.from = request.form("email")
mailer.to = "email@example.com" '<---Put your email address here
mailer.body = message
set mail = nothing
In advance, many thanks for your help.