469,356 Members | 1,947 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

0x8004020F error with CDO.message

THis did work ... now it dont... any Ideas?

myMailServer = "smtp.somewhere.com" 'ip address or fqdn

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

Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "So******@somewhere.com"
cdoMessage.To = "ji**********@somewhere.com"
cdoMessage.Subject = "An On-line survey has been Completed"
cdoMessage.TextBody = mess1
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing


Thanks
Jim
Jul 19 '05 #1
1 9721
http://www.aspfaq.com/2305

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


"Jim Flaherty" <ji**********@cnet.navy.mil> wrote in message
news:95**************************@posting.google.c om...
THis did work ... now it dont... any Ideas?

myMailServer = "smtp.somewhere.com" 'ip address or fqdn

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

Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "So******@somewhere.com"
cdoMessage.To = "ji**********@somewhere.com"
cdoMessage.Subject = "An On-line survey has been Completed"
cdoMessage.TextBody = mess1
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing


Thanks
Jim

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Mairhtin O'Feannag | last post: by
16 posts views Thread by | last post: by
2 posts views Thread by Chris Rennie | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.