469,951 Members | 2,355 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

CDO.message

Hi,

I am modifying my CDONTS code to use CDO.message. This works fine except
that it wont seem to let me send a copy of the e-mail to my-self. With
CDONTS i had no problems with this. Can anyone help with this? Thanks in
advance, Hugh
The code I am using is as follows:-
Set cdoConfig = Server.CreateObject("CDO.Configuration")

With cdoConfig.Fields

..Item(cdoSendUsingMethod) = cdoSendUsingPort

..Item(cdoSMTPServer) = "pegasus.intonet.co.uk"

..Update

End With

Set cdoMessage = Server.CreateObject("CDO.Message")

With cdoMessage

Set.Configuration = cdoConfig

..From = "we*******@andropause.org.uk"

..To = objrec("email")

..cc = "me*****@andropause.org.uk"

..Subject = "Welcome to The Andropause Society"

..HTMLBody = thetext

..Send

End With

Set cdoMessage = Nothing

Set cdoConfig = Nothing
Jul 19 '05 #1
4 8749
What happens?
- Do you get an error? What is it?
- Do you get nothing?
- Do you get something but not what you expect?

Cheers
Ken
"Hugh Welford" <hu**********@btinternet.com> wrote in message
news:OL*************@TK2MSFTNGP11.phx.gbl...
: Hi,
:
: I am modifying my CDONTS code to use CDO.message. This works fine except
: that it wont seem to let me send a copy of the e-mail to my-self. With
: CDONTS i had no problems with this. Can anyone help with this? Thanks in
: advance, Hugh
: The code I am using is as follows:-
: Set cdoConfig = Server.CreateObject("CDO.Configuration")
:
: With cdoConfig.Fields
:
: .Item(cdoSendUsingMethod) = cdoSendUsingPort
:
: .Item(cdoSMTPServer) = "pegasus.intonet.co.uk"
:
: .Update
:
: End With
:
: Set cdoMessage = Server.CreateObject("CDO.Message")
:
: With cdoMessage
:
: Set.Configuration = cdoConfig
:
: .From = "we*******@andropause.org.uk"
:
: .To = objrec("email")
:
: .cc = "me*****@andropause.org.uk"
:
: .Subject = "Welcome to The Andropause Society"
:
: .HTMLBody = thetext
:
: .Send
:
: End With
:
: Set cdoMessage = Nothing
:
: Set cdoConfig = Nothing
:
:
Jul 19 '05 #2
Hi Ken,
Thanks for answering.
I get nothing. No error, no crash, no hang just nothing. The primary
addressee receives his message perfectly, while the copied addressee
receives nothing.

Repeating the test, but copying to an addressee in another domain works
fine.

Using CDONTS this problem didnt arise, and copies to the same domain arrived
perfectly.

Regards Hugh
"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:OA**************@TK2MSFTNGP11.phx.gbl...
What happens?
- Do you get an error? What is it?
- Do you get nothing?
- Do you get something but not what you expect?

Cheers
Ken
"Hugh Welford" <hu**********@btinternet.com> wrote in message
news:OL*************@TK2MSFTNGP11.phx.gbl...
: Hi,
:
: I am modifying my CDONTS code to use CDO.message. This works fine except
: that it wont seem to let me send a copy of the e-mail to my-self. With
: CDONTS i had no problems with this. Can anyone help with this? Thanks in
: advance, Hugh
: The code I am using is as follows:-
: Set cdoConfig = Server.CreateObject("CDO.Configuration")
:
: With cdoConfig.Fields
:
: .Item(cdoSendUsingMethod) = cdoSendUsingPort
:
: .Item(cdoSMTPServer) = "pegasus.intonet.co.uk"
:
: .Update
:
: End With
:
: Set cdoMessage = Server.CreateObject("CDO.Message")
:
: With cdoMessage
:
: Set.Configuration = cdoConfig
:
: .From = "we*******@andropause.org.uk"
:
: .To = objrec("email")
:
: .cc = "me*****@andropause.org.uk"
:
: .Subject = "Welcome to The Andropause Society"
:
: .HTMLBody = thetext
:
: .Send
:
: End With
:
: Set cdoMessage = Nothing
:
: Set cdoConfig = Nothing
:
:

Jul 19 '05 #3
Is there anything in the mailroot folders on the server?

Cheers
Ken
"Hugh Welford" <hu**********@btinternet.com> wrote in message
news:eW**************@TK2MSFTNGP11.phx.gbl...
: Hi Ken,
: Thanks for answering.
: I get nothing. No error, no crash, no hang just nothing. The primary
: addressee receives his message perfectly, while the copied addressee
: receives nothing.
:
: Repeating the test, but copying to an addressee in another domain works
: fine.
:
: Using CDONTS this problem didnt arise, and copies to the same domain
arrived
: perfectly.
:
: Regards Hugh
:
:
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:OA**************@TK2MSFTNGP11.phx.gbl...
: > What happens?
: > - Do you get an error? What is it?
: > - Do you get nothing?
: > - Do you get something but not what you expect?
: >
: > Cheers
: > Ken
: >
: >
: > "Hugh Welford" <hu**********@btinternet.com> wrote in message
: > news:OL*************@TK2MSFTNGP11.phx.gbl...
: > : Hi,
: > :
: > : I am modifying my CDONTS code to use CDO.message. This works fine
except
: > : that it wont seem to let me send a copy of the e-mail to my-self. With
: > : CDONTS i had no problems with this. Can anyone help with this? Thanks
in
: > : advance, Hugh
: > : The code I am using is as follows:-
: > : Set cdoConfig = Server.CreateObject("CDO.Configuration")
: > :
: > : With cdoConfig.Fields
: > :
: > : .Item(cdoSendUsingMethod) = cdoSendUsingPort
: > :
: > : .Item(cdoSMTPServer) = "pegasus.intonet.co.uk"
: > :
: > : .Update
: > :
: > : End With
: > :
: > : Set cdoMessage = Server.CreateObject("CDO.Message")
: > :
: > : With cdoMessage
: > :
: > : Set.Configuration = cdoConfig
: > :
: > : .From = "we*******@andropause.org.uk"
: > :
: > : .To = objrec("email")
: > :
: > : .cc = "me*****@andropause.org.uk"
: > :
: > : .Subject = "Welcome to The Andropause Society"
: > :
: > : .HTMLBody = thetext
: > :
: > : .Send
: > :
: > : End With
: > :
: > : Set cdoMessage = Nothing
: > :
: > : Set cdoConfig = Nothing
: > :
: > :
: >
: >
:
:
Jul 19 '05 #4
Hi Ken... I very shamefacedly have to admit that, following your line of
enquiry thro to the end, I found that the copies were arriving OK, but due
to a conflict in the M/S OUTLOOK rules, were being sent un-noticed to a
catch-all directory.

Thanks for your help all the same. Very grateful. Regards Hugh

"Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
news:eA**************@TK2MSFTNGP10.phx.gbl...
Is there anything in the mailroot folders on the server?

Cheers
Ken
"Hugh Welford" <hu**********@btinternet.com> wrote in message
news:eW**************@TK2MSFTNGP11.phx.gbl...
: Hi Ken,
: Thanks for answering.
: I get nothing. No error, no crash, no hang just nothing. The primary
: addressee receives his message perfectly, while the copied addressee
: receives nothing.
:
: Repeating the test, but copying to an addressee in another domain works
: fine.
:
: Using CDONTS this problem didnt arise, and copies to the same domain
arrived
: perfectly.
:
: Regards Hugh
:
:
: "Ken Schaefer" <ke*******@THISadOpenStatic.com> wrote in message
: news:OA**************@TK2MSFTNGP11.phx.gbl...
: > What happens?
: > - Do you get an error? What is it?
: > - Do you get nothing?
: > - Do you get something but not what you expect?
: >
: > Cheers
: > Ken
: >
: >
: > "Hugh Welford" <hu**********@btinternet.com> wrote in message
: > news:OL*************@TK2MSFTNGP11.phx.gbl...
: > : Hi,
: > :
: > : I am modifying my CDONTS code to use CDO.message. This works fine
except
: > : that it wont seem to let me send a copy of the e-mail to my-self. With : > : CDONTS i had no problems with this. Can anyone help with this? Thanks in
: > : advance, Hugh
: > : The code I am using is as follows:-
: > : Set cdoConfig = Server.CreateObject("CDO.Configuration")
: > :
: > : With cdoConfig.Fields
: > :
: > : .Item(cdoSendUsingMethod) = cdoSendUsingPort
: > :
: > : .Item(cdoSMTPServer) = "pegasus.intonet.co.uk"
: > :
: > : .Update
: > :
: > : End With
: > :
: > : Set cdoMessage = Server.CreateObject("CDO.Message")
: > :
: > : With cdoMessage
: > :
: > : Set.Configuration = cdoConfig
: > :
: > : .From = "we*******@andropause.org.uk"
: > :
: > : .To = objrec("email")
: > :
: > : .cc = "me*****@andropause.org.uk"
: > :
: > : .Subject = "Welcome to The Andropause Society"
: > :
: > : .HTMLBody = thetext
: > :
: > : .Send
: > :
: > : End With
: > :
: > : Set cdoMessage = Nothing
: > :
: > : Set cdoConfig = Nothing
: > :
: > :
: >
: >
:
:

Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Hugh Welford | last post: by
8 posts views Thread by Brian Keating EI9FXB | last post: by
2 posts views Thread by Microsoft News | last post: by
2 posts views Thread by =?Utf-8?B?QWRl?= | last post: by
2 posts views Thread by bernd | last post: by
2 posts views Thread by forums_mp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.