sending email using CDO Message

D

dave

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 = "(e-mail address removed)"
.To = "(e-mail address removed)"
.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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CDO Message help 1
asp send mail cdo error 1
Send form data using CDO 3
CDOSYS send email with ASP 9
CDO Error 3
CDO Email Help 2
CDO yahoogroups mail problem 0
CDO authentication problem 2

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,520
Members
44,996
Latest member
rainocode

Latest Threads

Top