By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,728 Members | 753 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,728 IT Pros & Developers. It's quick & easy.

sending e-mail in VB.NET

P: n/a
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
Share this Question
Share on Google+
26 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
* "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

P: n/a
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

P: n/a
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

P: n/a
* "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

P: n/a
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

P: n/a
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

P: n/a
* "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

P: n/a
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

P: n/a
* "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

P: n/a
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

P: n/a
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

P: n/a
* "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

P: n/a
I tried Herfried's link, modified my code accordingly, and it works great!

Thanks again Herfried
Gary
Nov 20 '05 #17

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
* "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

P: n/a
* "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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.