sending email in

I am using

Imports System.Web.Mail

but when a user with 98 tries to run my program it gives an error stating:

This operation requires Windows NT, Windows 2000, or Windows XP.

Is there a fix for this problem. Meaning something I need to download on a 98 pc or does this mean I have to go back to the old outlook com way

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Are you specifing a mail server or loacalhost?


If they don't have a mail server running it won't run. You may be able to specify remote mail server.
Éric MoreauSenior .Net ConsultantCommented:
it won't works on win98 because CDONTS is not installed (and cannot be).

I think this free utility can :

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bman9111Author Commented:
this is my code

Dim Mail As MailMessage
            Mail = New MailMessage
            Mail .BodyFormat = MailFormat.Text
            Mail .From = "
            Mail .To = ""
            Mail .Subject = "Email"
            Mail .Body = "Hello"
            SmtpMail.SmtpServer = ""
            SmtpMail.Send(Mail )
        Catch ex As Exception
            MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
        End Try
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Éric MoreauSenior .Net ConsultantCommented:
It will not work on Win98!
Éric MoreauSenior .Net ConsultantCommented:
From the .Net help file

Namespace: System.Web.Mail

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

Assembly: System.Web (in System.Web.dll)
bman9111Author Commented:
ok that is what I thought, just wanted to check to see If I might have done something wrong. I guess I will have to go back to the outlook com way. Thanks

Éric MoreauSenior .Net ConsultantCommented:
give a try to FreeSMTP. You will have other problems with Outlook ( a confirmation message box will need to be acknowledge everytime you will send an e-mail).
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.