I get this error intermittently. I have cleared cache in browser and have to scratch my head as to why it would be intermittent? Either it can connect....or not...not either or. Please advise. Thanks.
Brian
NOTES:
Using IIS, XP Pro, CDOSYS
server is elaptop and checked dns ---is good
Brian
NOTES:
Using IIS, XP Pro, CDOSYS
server is elaptop and checked dns ---is good
Code:
Dim objCDOSYSCon
'Create the e-mail server object
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
'Set and update fields properties
With objCDOSYSCon
'Outgoing SMTP server
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserver")[/URL] = "elaptop.com"
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpserverport")[/URL] = 25
'CDO Port
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/sendusing")[/URL] = 2
'Timeout
.Fields("[URL unfurl="true"]http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")[/URL] = 60
.Fields.Update
End With
'Update the CDOSYS Configuration
Set objCDOSYSMail.Configuration = objCDOSYSCon
'Set and update email properties
With objCDOSYSMail
'0=Low, 1=Normal, 2=High
.Fields("urn:schemas:httpmail:importance").Value = 1
'Who the e-mail is from
.From = "brian@elaptop.com"
'Who the e-mail is sent to
.To = "bslintx@yahoo.com"
'Who the e-mail is CC'd to
.Cc = ""
'The subject of the e-mail
.Subject = "testing"
'Set the e-mail body format (HTMLBody=HTML TextBody=Plain)
.TextBody = "This is a test...only a test!"
.Fields.Update
'Send the e-mail
.Send
End With
'Close the server mail object
Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
response.write "sent"