sending e-mail in VB.NET

  • Thread starter Massimo Zaccarin
  • Start date
M

Massimo Zaccarin

ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've
read from
http://msdn.microsoft.com/library/d...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
 
C

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
 
T

Tom Spink

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
 
C

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
 
H

Herfried K. Wagner [MVP]

* "Massimo Zaccarin said:
ok, I know that I have to use the System.Web.Mail.SmtpMail class, but I've
read from
http://msdn.microsoft.com/library/d...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?

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/[email protected]>
 
M

Massimo Zaccarin

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...
 
H

Herfried K. Wagner [MVP]

* "Massimo Zaccarin said:
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/>
 
C

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
 
H

Herfried K. Wagner [MVP]

* "Cor said:
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).
 
J

Jay B. Harlow [MVP - Outlook]

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 
H

Herfried K. Wagner [MVP]

* "Jay B. Harlow said:
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/[email protected]>

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

Didymus

I tried Herfried's link, modified my code accordingly, and it works great!

Thanks again Herfried
Gary
 
C

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
 
C

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
 
M

Massimo Zaccarin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top