What does "doesn't work" mean?
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"dave" <anonymous@discussions.microsoft.com> wrote in message
news:87ab01c43267$661d6800$a101280a@phx.gbl...[color=blue]
> Hi There
> I have got little bit asp code to send email
> It was working if its hosted on windows 2000..
>
> But it doesnt work on winows server 2003..I guess it
> might be problem with specifying schema..I'm using CDO
> Message object. Below is the code tht i m using...
>
> sch = "http://schemas.microsoft.com/cdo/configuration/"
> Set cdoConfig = Server.CreateObject("CDO.Configuration")
> With cdoConfig.Fields
> .Item(sch & "sendusing") = 2 ' cdoSendUsingPort
> .Item(sch & "smtpserver") = "mail.neospace.net.au"
> .update
> End With
> Set cdoMessage = Server.CreateObject("CDO.Message")
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = "test@mydomain.com"
> .To = "abc@xyz.com.au"
> .Subject = "subject"
> .HtmLBody = "message body"
> .Send
> End With
> Set cdoMessage = Nothing
> Set cdoConfig = Nothing
>
> Do i need to authorised and log in SMTP server using From
> id or its has different configuration problem ?
> Any suggestion would be appreciated
> Thanx
> dave
>[/color]