Forums
This topic is locked
IIS6 CDONTS not working...
Posted 16 Sep 2004 19:53:18
1
has voted
16 Sep 2004 19:53:18 Richard Georgiou posted:
Hi again DMXZone..I'm hoping you can save my life (again!)
I've been asked to create a few pages on a clients web site and one of them is an e0mail form...
Their host is using IIS6 (Win2K3) and my existing CDONTS doesn't work...
I called the host (easynet) and they said that CDONTS is not installed on their new IIS6 servers. I was told to use their SMTP server for which I now have the address...
My question is how do I do this? I've searched the internet and can't make head not tail of it...
My old code (CDONTS) is below:
<%
' ******************************************
' ** Author: Richard J Georgiou **
' ** Filename: cdo.asp **
' ** Called by: bruchure.htm **
' ** Language: Active Server Pages - ASP **
' ** Date: 25th March 2004 **
' ** Amendment details below **
' ** **
' ** Description: **
' ** Simple program using CDONTS object **
' ** to create and send an e-mail from **
' ** a web form. Variable mybody is used **
' ** incrementally to store the main body **
' ** of the e-mail. This is then mapped **
' ** to the objMail.Body parameter of the **
' ** CDONTS.NewMail object **
' ******************************************
Dim mybody
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.From = " "
objMail.Subject = "From Web site - Submit equipment details form"
objMail.To = " "
mybody = "Company Name: " & request.form("f_companyname" & vbCrLf
mybody = mybody & "Contact Name: " & request.form("f_contactname" & vbCrLf
mybody = mybody & "Telephone Number: " & request.form("f_tel" & vbCrLf
mybody = mybody & "Fax Number: " & request.form("f_fax" & vbCrLf
mybody = mybody & "E-mail Address: " & request.form("f_email" & vbCrLf
mybody = mybody & "System type for sale: " & request.form("f_systemtype" & vbCrLf
mybody = mybody & "System model for sale: " & request.form("f_model" & vbCrLf
mybody = mybody & "Other information: " & request.form("f_other" & vbCrLf
objMail.Body = mybody
objMail.Send
'Killing the object
set objMail = nothing
%>
Can you please point me in the right direction as I'm a little confused!
Thanks again and please be gentle with me..! ASP is not my strong point!
Richard Georgiou
www.entity7.com
Replies
Replied 16 Sep 2004 20:21:05
16 Sep 2004 20:21:05 Richard Georgiou replied:
I've just been told my their tech sup that I can use CDO... Are there any decent articles on using this that I can read?
Thanks
Richard
Thanks
Richard
Replied 17 Sep 2004 21:08:50
17 Sep 2004 21:08:50 Rene Bandsma replied:
Good information about CDONTS: www.devasp.com/Samples/mail.asp
I would suggest you to use CDOSYS. It has many advantages. (e.g. faster)
I would suggest you to use CDOSYS. It has many advantages. (e.g. faster)
Replied 17 Sep 2004 23:17:59
17 Sep 2004 23:17:59 Richard Georgiou replied:
Thank you!!
I've used CDO and all is now great... Strange thought that I had to copy and paste some microsoft url's into the program and I have no idea why???
Cheers
Rich
I've used CDO and all is now great... Strange thought that I had to copy and paste some microsoft url's into the program and I have no idea why???
Cheers
Rich