473,507 Members | 5,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sending e-mail in VB.NET

ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've
read from
http://msdn.microsoft.com/library/de...lasstopic.asp:
Requirements
Namespace: System.Web.Mail

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)
does it mean that my app will not send e-mails from a Win98 client?
does that class use CDONTS?

is there a way to send e-mails from Win98 (without using socket)?

thanks
Nov 20 '05 #1
26 1756
Cor
Hi Massimo,

It means that on VB98, ME and XP home edition no SMTP mail server can run.

But if you have somewhere else a SMTP mailserver that is reachable from your
computer, you can use that.

Cor
Nov 20 '05 #2
Sorry Cor! No... The requirements state only XP Professional, 2000 and 2003
because the CDONTS extensions are not available in 98, ME, XP Home. You can
get SMTP servers for 98, ME and XP Home but having them won't make the
SmtpMail class work.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations

"Cor" <no*@non.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
Hi Massimo,

It means that on VB98, ME and XP home edition no SMTP mail server can run.

But if you have somewhere else a SMTP mailserver that is reachable from your computer, you can use that.

Cor

Nov 20 '05 #3
Cor
Hi Tom,

Are you absolute sure of that?

Because this is what is said about the SMTP class.

The mail message can be delivered either through the SMTP mail service built
into Microsoft Windows 2000 or through an arbitrary SMTP server

And not only in one place in the Microsoft documentation.

Cor
Sorry Cor! No... The requirements state only XP Professional, 2000 and 2003 because the CDONTS extensions are not available in 98, ME, XP Home. You can get SMTP servers for 98, ME and XP Home but having them won't make the
SmtpMail class work.

Nov 20 '05 #4
* "Massimo Zaccarin" <ma*****@zaccarin.it> scripsit:
ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've
read from
http://msdn.microsoft.com/library/de...lasstopic.asp:
Requirements
Namespace: System.Web.Mail

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

does it mean that my app will not send e-mails from a Win98 client?
does that class use CDONTS?
Yes. You will need one of the OS mentioned above.
is there a way to send e-mails from Win98 (without using socket)?


For simple mail:

<http://groups.google.com/groups?selm=bmgi0n%24lgtme%241%40ID-117757.news.uni-berlin.de>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
That means I have to use sockets...
Right?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eG****************@TK2MSFTNGP10.phx.gbl...
* "Massimo Zaccarin" <ma*****@zaccarin.it> scripsit:
ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've read from
http://msdn.microsoft.com/library/de...lasstopic.asp: Requirements
Namespace: System.Web.Mail

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Web (in System.Web.dll)

does it mean that my app will not send e-mails from a Win98 client?
does that class use CDONTS?
Yes. You will need one of the OS mentioned above.
is there a way to send e-mails from Win98 (without using socket)?


For simple mail:

<http://groups.google.com/groups?selm...117757.news.un
i-berlin.de>
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #6
How can I make an app that sends e-mail also on Win98/ME/XPpro/...?
"Tom Spink" <thomasdotspinkat@ntlworlddotcom> wrote in message
news:u5**************@TK2MSFTNGP12.phx.gbl...
Sorry Cor! No... The requirements state only XP Professional, 2000 and 2003 because the CDONTS extensions are not available in 98, ME, XP Home. You can get SMTP servers for 98, ME and XP Home but having them won't make the
SmtpMail class work.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations

"Cor" <no*@non.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
Hi Massimo,

It means that on VB98, ME and XP home edition no SMTP mail server can run.
But if you have somewhere else a SMTP mailserver that is reachable from

your
computer, you can use that.

Cor


Nov 20 '05 #7
* "Massimo Zaccarin" <ma*****@zaccarin.it> scripsit:
That means I have to use sockets...
Right?


What's so bad about using "sockets"?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
I have to write all the code that manages connection, errors, message,
protocol,...
I'm asking if there is a class in the Framework that manages all that things
using sockets...
if there is no other ways, I'll do it myself...
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OO**************@tk2msftngp13.phx.gbl...
* "Massimo Zaccarin" <ma*****@zaccarin.it> scripsit:
That means I have to use sockets...
Right?


What's so bad about using "sockets"?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #9
I have an ActiveX SMTP control that works nicely for both Exchange and
SendMail 8.x
It's at http://www.tiberiansun.us/Projects I've never gotten the built-in
stuff (CDONTS) to work, so this was my solution after "telneting" to the
SMTP server.
"Massimo Zaccarin" <ma*****@zaccarin.it> wrote in message
news:u2**************@TK2MSFTNGP10.phx.gbl...
ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've
read from
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebmailsmtpmailclasstopic.asp: Requirements
Namespace: System.Web.Mail

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Web (in System.Web.dll)
does it mean that my app will not send e-mails from a Win98 client?
does that class use CDONTS?

is there a way to send e-mails from Win98 (without using socket)?

thanks

Nov 20 '05 #10
* "Massimo Zaccarin" <ma*****@zaccarin.it> scripsit:
does it mean that my app will not send e-mails from a Win98 client?
does that class use CDONTS?

is there a way to send e-mails from Win98 (without using socket)?


Abderaware sells a nice mail component, but I don't know if it works on
Windows 98:

<http://www.abderaware.com/>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #11
Cor
Hi Herfried,

I think your answer is not right, but i am not sure because you and Tom said
so, therefore I am waiting on Jay B and if that takes long I will maybe
investigate it.

The way you describe it looks to me if a user cannot use Outlook from a
win98 client, I can asure you he can.

Cor
Nov 20 '05 #12
* "Cor" <no*@non.com> scripsit:
I think your answer is not right, but i am not sure because you and Tom said
so, therefore I am waiting on Jay B and if that takes long I will maybe
investigate it.

The way you describe it looks to me if a user cannot use Outlook from a
win98 client, I can asure you he can.


You /can/ use Outlook, even on a Windows 98 machine. The main point is
IMO that you cannot expect that all users of your application have
outlook installed on their machine (I don't use outlook, so I didn't
install it).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #13
Cor,
I was trying to avoid this question, as I did not have anything really to
add. ;-)

As Herfried stated, you can use interop with Outlook, however Outlook may
not be installed on a machine.

The System.Web.Mail.SmtpMail class requires "Collaboration Data Objects for
Windows 2000 (CDOSYS)" which as was pointed out requires a Windows 200,
Windows XP Professional, or Windows Server 2003. The older CDONTS on Windows
NT is not specifically CDOSYS...

CDOSYS itself is not really an SMTP server, it is a COM component that you
use to connect to an SMTP server. System.Web.Mail.SmtpMail is a wrapper for
this COM component.

CDOSYS is considered part of the OS on Windows 200, Windows XP Professional,
or Windows Server 2003, hence the requirement for those OS's.

About the only thing I can really add, is what someone else suggested the
other day:

The OP should consider upgrading to Windows 2000 or Windows XP, as both are
more stable the 98, of course not all machines can run W2K or XP, which is
where the products the others mentioned are viable options.

Hope this helps
Jay
"Cor" <no*@non.com> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
Hi Herfried,

I think your answer is not right, but i am not sure because you and Tom said so, therefore I am waiting on Jay B and if that takes long I will maybe
investigate it.

The way you describe it looks to me if a user cannot use Outlook from a
win98 client, I can asure you he can.

Cor

Nov 20 '05 #14
Doh!

A second item I wanted to add, but I do not have a sample.

Use a mailto url & Process.Start to have IE "send" the message, however I
believe this will cause the message to pop up and the user will actually
need to click Send.

Hope this helps
Jay

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Cor,
I was trying to avoid this question, as I did not have anything really to
add. ;-)

As Herfried stated, you can use interop with Outlook, however Outlook may
not be installed on a machine.

The System.Web.Mail.SmtpMail class requires "Collaboration Data Objects for Windows 2000 (CDOSYS)" which as was pointed out requires a Windows 200,
Windows XP Professional, or Windows Server 2003. The older CDONTS on Windows NT is not specifically CDOSYS...

CDOSYS itself is not really an SMTP server, it is a COM component that you
use to connect to an SMTP server. System.Web.Mail.SmtpMail is a wrapper for this COM component.

CDOSYS is considered part of the OS on Windows 200, Windows XP Professional, or Windows Server 2003, hence the requirement for those OS's.

About the only thing I can really add, is what someone else suggested the
other day:

The OP should consider upgrading to Windows 2000 or Windows XP, as both are more stable the 98, of course not all machines can run W2K or XP, which is
where the products the others mentioned are viable options.

Hope this helps
Jay
"Cor" <no*@non.com> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
Hi Herfried,

I think your answer is not right, but i am not sure because you and Tom

said
so, therefore I am waiting on Jay B and if that takes long I will maybe
investigate it.

The way you describe it looks to me if a user cannot use Outlook from a
win98 client, I can asure you he can.

Cor


Nov 20 '05 #15
* "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> scripsit:
A second item I wanted to add, but I do not have a sample.

Use a mailto url & Process.Start to have IE "send" the message, however I
believe this will cause the message to pop up and the user will actually
need to click Send.


Something like that?

<http://groups.google.com/groups?selm=uld6n9xnDHA.1632%40TK2MSFTNGP10.phx.gb l>

Yes -- this code will launch the default email application installed on
the system and the user will have to press "Send" himself.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #16
I tried Herfried's link, modified my code accordingly, and it works great!

Thanks again Herfried
Gary
Nov 20 '05 #17
Cor
Hi Herfried,

Now I can add Fergus with that sample.

But it is no alternative for webmail.

I write the alternative at Jay B's thread.

Cor
Nov 20 '05 #18
Cor
Hi Jay B,

Thanks for your answer, but I am not totaly convinced, I do not know if I
will test it.
CDOSYS itself is not really an SMTP server, it is a COM component that you
use to connect to an SMTP server. System.Web.Mail.SmtpMail is a wrapper for this COM component.


That I thought that it was and why could that not be in a W'98, XP home or
even a special made Linux Net environment.

If you say, I am 100% sure it is not in W'98 and XP home I will not test.

An alternative when it really does not work is in my opinion not a
connection to Outlook but using a webpage.
CDO is for me a component for "sending" batch mail, and that not to confuse
with retrieving batch mail what is something totaly different).

That I did use with classic ASP and in test with ASPX.

Moreover, because of that my first thought was that it would not work on a
computer without IIS-SMTP, but when I did look in the Microsoft,
documentation and even more now I see your sentence above I thought why not.

The alternative a webpage can run on every computer (even a Mac) because
then it is processed at the web server, which has than of course to be in
the OS range you have mentioned.

Can you tell me if you are 100% sure that the connect component cannot run
on W'98?
Cor

Nov 20 '05 #19
ok... I've done a test and.... it doesn't work under Win98
I'm writing a class that use sockets and it seems to work (I haven't tested
it hardly)

Bye
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
* "Massimo Zaccarin" <ma*****@zaccarin.it> scripsit:
does it mean that my app will not send e-mails from a Win98 client?
does that class use CDONTS?

is there a way to send e-mails from Win98 (without using socket)?


Abderaware sells a nice mail component, but I don't know if it works on
Windows 98:

<http://www.abderaware.com/>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #20
ok... I've done a test and.... it doesn't work under Win98
I'm writing a class that use sockets and it seems to work (I haven't tested
it hardly)

Bye

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Cor,
I was trying to avoid this question, as I did not have anything really to
add. ;-)

As Herfried stated, you can use interop with Outlook, however Outlook may
not be installed on a machine.

The System.Web.Mail.SmtpMail class requires "Collaboration Data Objects for Windows 2000 (CDOSYS)" which as was pointed out requires a Windows 200,
Windows XP Professional, or Windows Server 2003. The older CDONTS on Windows NT is not specifically CDOSYS...

CDOSYS itself is not really an SMTP server, it is a COM component that you
use to connect to an SMTP server. System.Web.Mail.SmtpMail is a wrapper for this COM component.

CDOSYS is considered part of the OS on Windows 200, Windows XP Professional, or Windows Server 2003, hence the requirement for those OS's.

About the only thing I can really add, is what someone else suggested the
other day:

The OP should consider upgrading to Windows 2000 or Windows XP, as both are more stable the 98, of course not all machines can run W2K or XP, which is
where the products the others mentioned are viable options.

Hope this helps
Jay
"Cor" <no*@non.com> wrote in message
news:Oq**************@TK2MSFTNGP09.phx.gbl...
Hi Herfried,

I think your answer is not right, but i am not sure because you and Tom

said
so, therefore I am waiting on Jay B and if that takes long I will maybe
investigate it.

The way you describe it looks to me if a user cannot use Outlook from a
win98 client, I can asure you he can.

Cor


Nov 20 '05 #21
* "Cor" <no*@non.com> scripsit:
Thanks for your answer, but I am not totaly convinced, I do not know if I
will test it.
CDOSYS itself is not really an SMTP server, it is a COM component that you
use to connect to an SMTP server. System.Web.Mail.SmtpMail is a wrapper

for
this COM component.


That I thought that it was and why could that not be in a W'98, XP home or
even a special made Linux Net environment.


IMO it shouldn't be the problem to reimplement the classes for Linux or
an older Windows version -- but it's a lot of work.

;-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #22
* "Cor" <no*@non.com> scripsit:
Now I can add Fergus with that sample.

But it is no alternative for webmail.

I write the alternative at Jay B's thread.


I read it...

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #23
Cor
Can you tell me if you are 100% sure that the connect component cannot run
on W'98?
It is not on W98 as it only ships with W2K, WinXP & Windows Server 2003.

The following site only says Windows XP, while the .NET docs say XP Pro.

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

I do not have XP Home to verify if CDOSYS ships with it or not, I will ask
my fellow Outlook MVPs.

This page explicitly states not available on Windows 98!
http://msdn.microsoft.com/library/de...ailability.asp
even a special made Linux Net environment. Remember CDOSYS is an implementation detail. When System.Web.Mail.SmtpMail
is ported to Linux, it could be implemented with Sockets or a "native" Linux
SMTP library, instead of CDOSYS.

Hope this helps
Jay

"Cor" <no*@non.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Hi Jay B,

Thanks for your answer, but I am not totaly convinced, I do not know if I
will test it.
CDOSYS itself is not really an SMTP server, it is a COM component that you use to connect to an SMTP server. System.Web.Mail.SmtpMail is a wrapper for
this COM component.


That I thought that it was and why could that not be in a W'98, XP home or
even a special made Linux Net environment.

If you say, I am 100% sure it is not in W'98 and XP home I will not test.

An alternative when it really does not work is in my opinion not a
connection to Outlook but using a webpage.
CDO is for me a component for "sending" batch mail, and that not to

confuse with retrieving batch mail what is something totaly different).

That I did use with classic ASP and in test with ASPX.

Moreover, because of that my first thought was that it would not work on a
computer without IIS-SMTP, but when I did look in the Microsoft,
documentation and even more now I see your sentence above I thought why not.
The alternative a webpage can run on every computer (even a Mac) because
then it is processed at the web server, which has than of course to be in
the OS range you have mentioned.

Can you tell me if you are 100% sure that the connect component cannot run
on W'98?
Cor

Nov 20 '05 #24
Hi Massimo,

Based on my research, SmtpMail uses CDOSYS behind. CDOSYS is not available
on Windows 98.
You may take a look at the link below.
http://www.c-sharpcorner.com/internet/Pop3Access.asp
If you have any concern on this issue, please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #25
thanks

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:Jh**************@cpmsftngxa07.phx.gbl...
Hi Massimo,

Based on my research, SmtpMail uses CDOSYS behind. CDOSYS is not available
on Windows 98.
You may take a look at the link below.
http://www.c-sharpcorner.com/internet/Pop3Access.asp
If you have any concern on this issue, please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #26
Hi Massimo,

As I said in my previous post, since the SMTPMail class will use the
CDOSYS.dll shipped from windows 2000, it will not work on windows 98.
So you have to do the issue yourself or use an third party tool. As
Herfried said, you may try to automation outlook to achieve your aim, but
you can not guarantee that all the customers who will use your program will
have outlook installed

If you have any concern on this issue, please post here.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #27

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

Similar topics

3
7027
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt....
1
14484
by: coder_1024 | last post by:
I'm trying to send a packet of binary data to a UDP server. If I send a text string, it works fine. If I attempt to send binary data, it sends a UDP packet with 0 bytes of data (just the...
3
4614
by: Robert A. van Ginkel | last post by:
Hello Fellow Developer, I use the System.Net.Sockets to send/receive data (no tcpclient/tcplistener), I made a receivethread in my wrapper, the receivethread loops/sleeps while waiting for data...
4
8189
by: yaron | last post by:
Hi, I have a problem when sending data over TCP socket from c# client to java server. the connection established ok, but i can't send data from c# client to java server. it's work ok with...
3
7691
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
3
11315
by: Sells, Fred | last post by:
I'm using MSW XP Pro with Python 2.4 to develop but production will be Linux with Python 2.3. (could upgrade to 2.4 if absolutely necessary) I can also switch to Linux for development if...
9
4881
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
0
1850
by: remya1000 | last post by:
by using FTP i can send files to server using vb.net. if the file is big, then it will take some time to complete the sending process to server.or if we were sending 3-4 files to the server one by...
10
5041
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
0
7223
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,...
0
7372
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...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
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 ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
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...

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.