navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

ASP for 2003 server

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> ASP for 2003 server
Page: [1]
 
rothacher

 

Posts: 2
Joined: 9/14/2004
Status: offline

 
ASP for 2003 server - 9/14/2004 15:47:16   
could someone please help me! i am needing to convert my cdonts (used on 2000 server) to cdosys (used on 2003 server). we have changed the coding, but the when the user "submits" the order form, the email that is supposed to be generated, sits in the job que. Here is the code we currently have....
'Send using the Pickup directory on the IIS server

Dim iMsg

Dim iConf

Dim Flds

Dim strHTML

Const cdoSendUsingPickup = 1

set iMsg = CreateObject("CDO.Message")

set iConf = CreateObject("CDO.Configuration")

' set the CDOSYS configuration fields to use the SMTP service pickup directory

Set Flds = iConf.Fields

With Flds

.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPickup

.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:\inetpub\mailroot\pickup"

.Update

End With

' build HTML for message body

'strHTML = "<HTML>"

'strHTML = strHTML & "<HEAD>"

'strHTML = strHTML & "<BODY>"

'strHTML = strHTML & "<b>"&t&"</b></br>"

'strHTML = strHTML & "</BODY>"

'strHTML = strHTML & "</HTML>"

' apply settings to the message

With iMsg

Set .Configuration = iConf

.To = emailbcc

.Bcc = emailbcc

.From = emailfrom

.Subject = "This is a test CDOSYS message (Pickup directory)"

.HTMLBody = t

' if requestor includes email address then send them confirm email

if trim(emailconfirm) <> "" then .To = emailconfirm end if

.Send

End With

' cleanup of variables

Set iMsg = Nothing

Set iConf = Nothing

Set Flds = Nothing

'***************************************************************************************

response.write t

%>
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: ASP for 2003 server - 9/15/2004 3:39:51   
Try something like this?

				Set oMail = Server.CreateObject(theComponent("CDO.Message"))
				Set iConf = Server.CreateObject("CDO.Configuration")
				Set Flds = iConf.Fields
				iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
				iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "Localhost"
				iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
				iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
				iConf.Fields.Update
				Set oMail.Configuration = iConf
				oMail.To 			= strTo
				oMail.From 			= strFrom
				oMail.CC			= strCC
				oMail.Subject 		= strSubject
				oMail.TextBody 		= strBody
				oMail.Send
				Set iConf = Nothing
				Set Flds = Nothing


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to rothacher)
rothacher

 

Posts: 2
Joined: 9/14/2004
Status: offline

 
RE: ASP for 2003 server - 9/15/2004 14:33:38   
Thanks! We changed the code to read as below, but it still is not processing the email properly. It still sits in the que...........a person here is going to look into the SMTP configuration and determine if that is the problem. Do you see anything below, in our changed code that would cause any problem?

<%
Set oMail = Server.CreateObject("CDO.Message")
Set iConf = Server.CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
iConf.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
iConf.Fields.Update
Set oMail.Configuration = iConf
oMail.To = emailbcc
oMail.From = "sbridges@......"
' if requestor includes email address then send them confirm email
'if trim(emailconfirm) <> "" then omail.To = emailconfirm end if
oMail.Subject = emailsubject
oMail.htmlBody = t
oMail.Send
Set omail = nothing
Set iConf = Nothing
Set Flds = Nothing
%>

(in reply to Spooky)
UFOMike

 

Posts: 1
Joined: 2/8/2005
Status: offline

 
RE: ASP for 2003 server - 2/8/2005 13:01:21   
Is there any way to tell if a CDONTS or CDOSYS email has actually been sent? I am not using SMTP -- we just use an internal mail server, so we SEND the email and just hope it gets delivered. Sometimes it does, sometimes it doesnt!:)

(in reply to rothacher)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> ASP for 2003 server
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts