Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 25th, 2005, 12:29 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Email Problem - CDO SYS Error

There seems to be an error with CDOSYS email script. I cant use it on 2 servers

The error I get is..

ADODB.Fields error '800a0ea5'
Fields update failed. For further information, examine the Status property of individual field objects.

The error is on line ".Update"


set imsg = createobject("cdo.message")
set iconf = createobject("cdo.configuration")

set Flds = iConf.Fields
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = <smtp address>
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 25
.Update
End With

With iMsg
Set .Configuration = iConf
.To = <email address>
.From = <email address>
.Subject = <subject>
.HTMLBody = <message body>
.fields.update
.Send
End With

set imsg = nothing
set iconf = nothing

 
Old August 25th, 2005, 05:14 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

I think the value of the sendusing field is incorrect, try this...
Code:
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")       = 2 ' send using port
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")    = <smtp address>
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")  = 25
HTH,

Chris






Similar Threads
Thread Thread Starter Forum Replies Last Post
IE Errormessege Error "Sys" undefined chandana ASP.NET 2.0 Professional 1 August 12th, 2008 11:35 AM
CDO Email error Treefarn Classic ASP Professional 10 February 20th, 2007 02:39 PM
CDO external email error in ASP Robert02 Classic ASP Professional 0 July 5th, 2006 04:28 PM
error sending email with attachment using CDO archanahs Classic ASP Professional 1 May 25th, 2006 08:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.