473,563 Members | 2,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDOSYS NNTP

Is it possible to send/receive nntp messages via CDOSYS without a 3rd party
news component? The NNTP links I have found appear to be related to MS
Exchange 2K.

My goal is to write an ASP interface as a customized news reader.

Roland

Jul 19 '05 #1
8 2729
"Roland Hall" <nobody@nowhere > wrote in message
news:ef******** ******@TK2MSFTN GP12.phx.gbl...
Is it possible to send/receive nntp messages via CDOSYS without a 3rd party news component? The NNTP links I have found appear to be related to MS
Exchange 2K.

My goal is to write an ASP interface as a customized news reader.


Yes!
This is perfectly possible. Outlook Express, also uses -the same- component.

Jul 19 '05 #2
"Egbert Nierop (MVP for IIS)" wrote in message
news:eK******** ******@TK2MSFTN GP12.phx.gbl...
: "Roland Hall" <nobody@nowhere > wrote in message
: news:ef******** ******@TK2MSFTN GP12.phx.gbl...
: > Is it possible to send/receive nntp messages via CDOSYS without a 3rd
: party
: > news component? The NNTP links I have found appear to be related to MS
: > Exchange 2K.
: >
: > My goal is to write an ASP interface as a customized news reader.
:
: Yes!
: This is perfectly possible. Outlook Express, also uses -the same-
component.

Hi Egbert...

Can you shed some light on where I can find documentation on this? It is my
understanding that Exchange would have to be on the same server and I had
hoped this was not a requirement. I cannot find any definitive information
anywhere.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #3
"Roland Hall" <nobody@nowhere > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
"Egbert Nierop (MVP for IIS)" wrote in message
news:eK******** ******@TK2MSFTN GP12.phx.gbl...
: "Roland Hall" <nobody@nowhere > wrote in message
: news:ef******** ******@TK2MSFTN GP12.phx.gbl...
: > Is it possible to send/receive nntp messages via CDOSYS without a 3rd
: party
: > news component? The NNTP links I have found appear to be related to MS : > Exchange 2K.
: >
: > My goal is to write an ASP interface as a customized news reader.
:
: Yes!
: This is perfectly possible. Outlook Express, also uses -the same-
component.

Hi Egbert...

Can you shed some light on where I can find documentation on this? It is my understanding that Exchange would have to be on the same server and I had
hoped this was not a requirement. I cannot find any definitive information anywhere.


That's not correct. As I said, CDO is installed on for instance XP, and I
have -no- Exchange on my system. Outlook Express uses CDO to post and to
read messages.
But as soon as you install Exchange on a server, it will replace the
original CDO and add additional functionailty, that you don't need to
imitate 'outlook express'.

About documentation, it's not fully documented but not impossible to find
out. The typelibrary is very extended and if you get comfortable using that
API, you also easy can post and read from NNTP servers.

http://msdn.microsoft.com/library/de..._newsgroup.asp

Private Sub POST_NEWS_MESSA GE()
Dim Msg As New CDO.Message
Dim Cfg As New CDO.Configurati on

Cfg.Fields("htt p://schemas.microso ft.com/cdo/configuration/postusing").Val ue
= 2
Cfg.Fields("htt p://schemas.microso ft.com/cdo/configuration/nntpserver").Va lu
e = "yournntpserver "

Cfg.Fields.Upda te
Set Msg.Configurati on = Cfg

Msg.Subject = "Hello"
Msg.From = "us***@yourdoma in.com"
Msg.Newsgroups = "yournewsgr oup"
Msg.Post

End Sub

Jul 19 '05 #4
"Egbert Nierop (MVP for IIS)" wrote in message
news:uR******** ******@TK2MSFTN GP12.phx.gbl...
: "Roland Hall" wrote in message
: news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
: > "Egbert Nierop (MVP for IIS)" wrote in message
: > news:eK******** ******@TK2MSFTN GP12.phx.gbl...
: > : "Roland Hall" wrote in message
: > : news:ef******** ******@TK2MSFTN GP12.phx.gbl...
: > : > Is it possible to send/receive nntp messages via CDOSYS without a
3rd
: > : party
: > : > news component? The NNTP links I have found appear to be related to
: MS
: > : > Exchange 2K.
: > : >
: > : > My goal is to write an ASP interface as a customized news reader.
: > :
: > : Yes!
: > : This is perfectly possible. Outlook Express, also uses -the same-
: > component.
: >
: > Hi Egbert...
: >
: > Can you shed some light on where I can find documentation on this? It
is
: my
: > understanding that Exchange would have to be on the same server and I
had
: > hoped this was not a requirement. I cannot find any definitive
: information
: > anywhere.
:
: That's not correct. As I said, CDO is installed on for instance XP, and I
: have -no- Exchange on my system. Outlook Express uses CDO to post and to
: read messages.
: But as soon as you install Exchange on a server, it will replace the
: original CDO and add additional functionailty, that you don't need to
: imitate 'outlook express'.
:
: About documentation, it's not fully documented but not impossible to find
: out. The typelibrary is very extended and if you get comfortable using
that
: API, you also easy can post and read from NNTP servers.
:
:
http://msdn.microsoft.com/library/de..._newsgroup.asp
:
: Private Sub POST_NEWS_MESSA GE()
: Dim Msg As New CDO.Message
: Dim Cfg As New CDO.Configurati on
:
:
Cfg.Fields("htt p://schemas.microso ft.com/cdo/configuration/postusing").Val ue
: = 2
:
Cfg.Fields("htt p://schemas.microso ft.com/cdo/configuration/nntpserver").Va lu
: e = "yournntpserver "
:
: Cfg.Fields.Upda te
: Set Msg.Configurati on = Cfg
:
: Msg.Subject = "Hello"
: Msg.From = "us***@yourdoma in.com"
: Msg.Newsgroups = "yournewsgr oup"
: Msg.Post
:
: End Sub

Egbert...

Thanks for responding but this appears to be VB, not VBScript to be used
with ASP. I made some modifications and I got it working but it still needs
some work and now I need to find out how to get the messages and display
them and then write my interface.

Here is what I have currently. I posted this message in the test area.

<%@ Language=VBScri pt %>
<%
Option Explicit
Response.Buffer = True

Const cdoPostUsingPor t = 2
Const cdoPostUsingMet hod =
"http://schemas.microso ft.com/cdo/configuration/postusing"
Const cdoNNTPServer =
"http://schemas.microso ft.com/cdo/configuration/nntpserver"
Const cdoNNTPServerPo rt =
"http://schemas.microso ft.com/cdo/configuration/nntpserverport"
Const cdoNNTPConnecti onTimeout =
"http://schemas.microso ft.com/cdo/configuration/nntpconnectiont imeout"
Const cdoNNTPAuthenti cate =
"http://schemas.microso ft.com/cdo/configuration/nntpauthenticat e"
Const cdoPostEmailAdd ress =
"http://schemas.microso ft.com/cdo/configuration/postemailaddres s"

Private Sub Post_News_Messa ge()
Dim Cfg, Fields, Msg
Set Cfg = Server.CreateOb ject("CDO.Confi guration")
Set Fields = Cfg.Fields
Set Msg = Server.CreateOb ject("CDO.Messa ge")

With Fields
.Item(cdoPostUs ingMethod) = cdoPostUsingPor t
.Item(cdoNNTPSe rver) = "msnews.microso ft.com"
.Item(cdoNNTPSe rverPort) = 119
.Item(cdoNNTPCo nnectionTimeout ) = 10
.Update
End With

With Msg
.Configuration = Cfg
.Newsgroups = "microsoft.test "
.From = "nobody@nowhere "
.Subject = "NNTP Test"
.TextBody = "NNTP Test Sent @ " & Now()
.Post
End With

Set Fields = Nothing
Set Msg = Nothing
Set Cfg = Nothing

End Sub
Post_News_Messa ge
%>

I posted another message after this, after I modified my .From and it went
to the same thread. Do you know if this is based on the subject?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Jul 19 '05 #5
"Roland Hall" <nobody@nowhere > wrote in message
news:Ox******** *****@TK2MSFTNG P09.phx.gbl...
"Egbert Nierop (MVP for IIS)" wrote in message

Egbert...

Thanks for responding but this appears to be VB, not VBScript to be used
with ASP. I made some modifications and I got it working but it still needs some work and now I need to find out how to get the messages and display
them and then write my interface.

Here is what I have currently. I posted this message in the test area.

<%@ Language=VBScri pt %>
<%
Option Explicit
Response.Buffer = True

Const cdoPostUsingPor t = 2
Const cdoPostUsingMet hod =
"http://schemas.microso ft.com/cdo/configuration/postusing"
Const cdoNNTPServer =
"http://schemas.microso ft.com/cdo/configuration/nntpserver"
Const cdoNNTPServerPo rt =
"http://schemas.microso ft.com/cdo/configuration/nntpserverport"
Const cdoNNTPConnecti onTimeout =
"http://schemas.microso ft.com/cdo/configuration/nntpconnectiont imeout"
Const cdoNNTPAuthenti cate =
"http://schemas.microso ft.com/cdo/configuration/nntpauthenticat e"
Const cdoPostEmailAdd ress =
"http://schemas.microso ft.com/cdo/configuration/postemailaddres s"

Private Sub Post_News_Messa ge()
Dim Cfg, Fields, Msg
Set Cfg = Server.CreateOb ject("CDO.Confi guration")
Set Fields = Cfg.Fields
Set Msg = Server.CreateOb ject("CDO.Messa ge")

With Fields
.Item(cdoPostUs ingMethod) = cdoPostUsingPor t
.Item(cdoNNTPSe rver) = "msnews.microso ft.com"
.Item(cdoNNTPSe rverPort) = 119
.Item(cdoNNTPCo nnectionTimeout ) = 10
.Update
End With

With Msg
.Configuration = Cfg
.Newsgroups = "microsoft.test "
.From = "nobody@nowhere "
.Subject = "NNTP Test"
.TextBody = "NNTP Test Sent @ " & Now()
.Post
End With

Set Fields = Nothing
Set Msg = Nothing
Set Cfg = Nothing

End Sub
Post_News_Messa ge
%>

I posted another message after this, after I modified my .From and it went
to the same thread. Do you know if this is based on the subject?

Hints:

1) Don't declare all variables over and over... Save yourself the headache
of copying them...
add a metatag to global.asa

(at first line in global.asa)
<!--METADATA TYPE="TypeLib" NAME="Microsoft CDO for Windows 2000 Library"
UUID="{CD000000-8B95-11D1-82DB-00C04FB1625D}" VERSION="1.0"-->
2) Use CreateObject instead of Server.CreateOb ject (which is a legacy method
and slower)
I was wrong to suggest that CDOSYS also reads NNTP servers, it only writes
to
them and it can format your message nicely and easily.
Basically, this would mean that you need an alternative to directories and
messages data from NTTP. As soon as you have a message, you load the message
using ADODB.Stream and load them with a message object. CDO will
automatically categorize and interprete the message from the stream.

Jul 19 '05 #6
"Egbert Nierop (MVP for IIS)" wrote in message
news:uT******** ******@TK2MSFTN GP11.phx.gbl...

: Hints:
:
: 1) Don't declare all variables over and over... Save yourself the headache
: of copying them...
: add a metatag to global.asa
:
: (at first line in global.asa)
: <!--METADATA TYPE="TypeLib" NAME="Microsoft CDO for Windows 2000 Library"
: UUID="{CD000000-8B95-11D1-82DB-00C04FB1625D}" VERSION="1.0"-->
: 2) Use CreateObject instead of Server.CreateOb ject (which is a legacy
method
: and slower)
:
: I was wrong to suggest that CDOSYS also reads NNTP servers, it only writes
: to
: them and it can format your message nicely and easily.
: Basically, this would mean that you need an alternative to directories and
: messages data from NTTP.

An alternative?
I've several things to read news messages and have run into a flurry of
problems:
1. My host says they support AspNNTP but the component is not loaded.
2. I tried using an NNTP reader written in .NET C#. It returns with errors.
3. I found there was a DYNU TCPSocket compnent loaded, so I tried using that
since I can telnet to the news server and issue the commands I want:
telnet msnews.microsof t.com 119
listgroup microsoft.publi c.inetserver.as p.general
head 272506
body 272506
....

The component connects but then says the trial period has ended.

I'm not having much luck. I've searched for hours on the net to find
something I could use without a component and have not been successful in
finding anything that actually works.

: As soon as you have a message,

Using this unknown alternative method I assume...

: you load the message

From where? ...a file?

: using ADODB.Stream and load them with a message object. CDO will
: automatically categorize and interprete the message from the stream.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #7
> I've several things to read news messages and have run into a flurry
of
problems: 1. My host says they support AspNNTP but the component is not

loaded.

Check to see if your host has IP*Works! (they probably do) - it
contains an NNTP object.
Regards,
Lance R.
/n
software
http://www.nsoftware.com/

-

Jul 19 '05 #8

<la****@nsoftwa re.removeme.com > wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
: > I've several things to read news messages and have run into a flurry
: > of
: >
: problems:
: > 1. My host says they support AspNNTP but the component is not
: loaded.
:
: Check to see if your host has IP*Works! (they probably do) - it
: contains an NNTP object.

Thanks Lance. Unfortunately it's not loaded but I'm working on getting them
to install AspNNTP. Sometimes the first time I talk to support I get
someone that I cannot understand at all.

I told them since this was on the list of components they advertise as
having on the server, I would like to have it installed so I could use it.
It says the trial period has expired.

Their response was, it's there and it's a free component so it expires after
30 days. Let us know if you need to use it and we'll install it.

WTFO? (O:= Obviously there will be follow up correspondence.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1594
by: Paxton | last post by:
Is it necessary to set field configurations for CDOSYS? I have yet to recode all my existing uses of CDONTS over to CDOSYS. In most of the sample code I've seen on the usual ASP sites, there is code to set field configurations for CDOSYS (usually using With... End With). However, in a number of CDOSYS-related code samples offered within...
6
1592
by: Mauricio Freitas [MVP] | last post by:
Hello Does anyone know of a (good) asp script to browse/post nntp (usenet/newsgroups)? I know there are some ASP .Net ones, but I rather have this on ASP for now since I'm still working on migrating my site later. TIA
14
13410
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on another PC that the database was installed on, the user is getting the message, "The project contains a missing or broken reference to the file...
24
6236
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I can't figure out how to embed an image. Thanks for your time. -- Manuel
8
7536
by: Akbur | last post by:
Dear all, I'm having major issues sending an email from my ASP.NET app. I'm getting a "Could not create 'CDO.Message' object". When I did a search for cdosys.dll in \win_location\system32, I could not find it. So I copied it from another Windows 2003 server, where it did exist. Another dependant file was missing too (inetcomm.dll).
2
5362
by: mister-Ed | last post by:
Trying to use cdosys mail, but this is giving me an "no such object" error. the hosting company is not much help, but their list of components offered does include cdosys mail: <form method="post" action="cdosys-godaddy.asp"><p class="bodymd- wh">Your Name: <input type="text" name="uname" id="uname"> <br>City: <input type="text"...
8
3249
by: worldofrugs | last post by:
I'm hosted on a shared server with Godaddy.com... I have several forms on my website that all use the same ASP file to send out my forms.. It worked fine for a long time, but now the forms send to my e-mail arrive after a few hours instead of instantly. Calling Godaddy did not help as they stated all is working fine (no delays) on their end...
9
3010
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works except that I can't get the value of holiday_ID included as a querystring. As a test I can insert a value after the ?id= and this is passed as a...
4
7206
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I am working on a program that gets mail messages from the default SMTP server with iis 6.0 on windows server 2003. I am using the cdosys.dll in the system32 directory. The reference Name is "Microsoft CDO for Windows 2000 Library". On the machine there is a CDO.dll in the Program Files\Common Files\System\MSMAPI\1033 directory. The...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.