IIS and SMTP - cdosys with windows 2003 error

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > April 2005 > cdosys with windows 2003 error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author cdosys with windows 2003 error
dmalhotr2001@yahoo.com

2005-03-29, 2:49 am

Hi,

I'm using windows 2003 with asp. However I'm having problems sending
email using the cdosys object.

My code is below and I don't believe its the code but on the send
command.

<%
dim sch
dim cdoConfig
dim cdoMessage

sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = "127.0.0.1"
cdoConfig.fields.update

Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "test@gmail.com"
cdoMessage.To = "test@gmail.com"
cdoMessage.Subject = "Sample CDONTS NewMail"
cdoMessage.TextBody = "This is a test for CDONTS message"
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>

error '8004020f'
/tad/testing.asp, line 30

I'm not sure what's wrong. When I go to my SMTP Virtual Server
settings in IIS --> Properties --> Delivery --> Advanced .

The FQDN is localhost and the smarthost is blank.

Any expertise/help would be greatly appreciated.

Thanks

:D

Aaron [SQL Server MVP]

2005-03-29, 2:49 am

http://www.aspfaq.com/2305

--
Please post DDL, sample data and desired results.
See http://www.aspfaq.com/5006 for info.




<dmalhotr2001@yahoo.com> wrote in message
news:1112070004.526210.24250@l41g2000cwc.googlegroups.com...
> Hi,
>
> I'm using windows 2003 with asp. However I'm having problems sending
> email using the cdosys object.
>
> My code is below and I don't believe its the code but on the send
> command.
>
> <%
> dim sch
> dim cdoConfig
> dim cdoMessage
>
> sch = "http://schemas.microsoft.com/cdo/configuration/"
> Set cdoConfig = Server.CreateObject("CDO.Configuration")
> cdoConfig.Fields.Item(sch & "sendusing") = 2
> cdoConfig.Fields.Item(sch & "smtpserver") = "127.0.0.1"
> cdoConfig.fields.update
>
> Set cdoMessage = Server.CreateObject("CDO.Message")
> Set cdoMessage.Configuration = cdoConfig
> cdoMessage.From = "test@gmail.com"
> cdoMessage.To = "test@gmail.com"
> cdoMessage.Subject = "Sample CDONTS NewMail"
> cdoMessage.TextBody = "This is a test for CDONTS message"
> cdoMessage.Send
> Set cdoMessage = Nothing
> Set cdoConfig = Nothing
> %>
>
> error '8004020f'
> /tad/testing.asp, line 30
>
> I'm not sure what's wrong. When I go to my SMTP Virtual Server
> settings in IIS --> Properties --> Delivery --> Advanced .
>
> The FQDN is localhost and the smarthost is blank.
>
> Any expertise/help would be greatly appreciated.
>
> Thanks
>
> :D
>



dmalhotr2001@yahoo.com

2005-04-01, 5:56 pm

Does anyone know if CDOSYS is supported in Longhorn??

:D

Jeff Cochran

2005-04-03, 6:00 pm

On 1 Apr 2005 06:27:50 -0800, dmalhotr2001@yahoo.com wrote:

>Does anyone know if CDOSYS is supported in Longhorn??


Longhorn hasn't been released, or even entered Beta. *Nothing* is
supported or unsupported at this time.

Jeff
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com