Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > sending email using CDO Message

Reply
Thread Tools

sending email using CDO Message

 
 
dave
Guest
Posts: n/a
 
      05-05-2004
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 = ""
.To = ""
.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

 
Reply With Quote
 
 
 
 
Aaron Bertrand - MVP
Guest
Posts: n/a
 
      05-05-2004
What does "doesn't work" mean?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/




"dave" <> wrote in message
news:87ab01c43267$661d6800$...
> 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 = ""
> .To = ""
> .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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Email With Attachments Failure using CDO.Message Naveen Jain ASP General 1 07-17-2006 12:28 PM
Sending email using ASP (CDO or Exchange) Drew ASP General 1 12-09-2004 02:13 PM
"Could not access 'CDO.Message' object" when sending attachments Liz Patton ASP .Net 4 07-17-2004 12:58 PM
Sending multipart email with CDO object and 7bit encoding Irene ASP General 0 05-01-2004 01:35 PM
CDO not sending email Jay ASP General 5 01-15-2004 08:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57