Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:52 AM
Jim Flaherty
Guest
 
Posts: n/a
Default 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 = "Somebody@somewhere.com"
cdoMessage.To = "jim.flaherty@somewhere.com"
cdoMessage.Subject = "An On-line survey has been Completed"
cdoMessage.TextBody = mess1
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing




Thanks
Jim
  #2  
Old July 19th, 2005, 09:52 AM
Aaron Bertrand - MVP
Guest
 
Posts: n/a
Default Re: 0x8004020F error with CDO.message

http://www.aspfaq.com/2305

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




"Jim Flaherty" <jim.flaherty@cnet.navy.mil> wrote in message
news:9514066b.0312010822.45d4054d@posting.google.c om...[color=blue]
> 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 = "Somebody@somewhere.com"
> cdoMessage.To = "jim.flaherty@somewhere.com"
> cdoMessage.Subject = "An On-line survey has been Completed"
> cdoMessage.TextBody = mess1
> cdoMessage.Send
> Set cdoMessage = Nothing
> Set cdoConfig = Nothing
>
>
>
>
> Thanks
> Jim[/color]


 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles