?
Solved

sending email in vb.net

Posted on 2004-11-22
7
Medium Priority
?
241 Views
Last Modified: 2010-04-17
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


0
Comment
Question by:bman9111
  • 4
  • 2
7 Comments
 

Expert Comment

by:j_gardiner
ID: 12646403
Are you specifing a mail server or loacalhost?

   SmtpMail.SmtpServer="localhost"

If they don't have a mail server running it won't run. You may be able to specify remote mail server.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 200 total points
ID: 12646829
it won't works on win98 because CDONTS is not installed (and cannot be).

I think this free utility can : http://www.quiksoftcorp.com/freesmtp/
0
 
LVL 8

Author Comment

by:bman9111
ID: 12646870
this is my code


Dim Mail As MailMessage
        Try
            Mail = New MailMessage
            Mail .BodyFormat = MailFormat.Text
            Mail .From = "from@aol.com
            Mail .To = "user@aol.com"
            Mail .Subject = "Email"
            Mail .Body = "Hello"
            SmtpMail.SmtpServer = "192.168.0.102"
            SmtpMail.Send(Mail )
        Catch ex As Exception
            MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)
        End Try
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12646945
It will not work on Win98!
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12646968
From the .Net help file

Requirements
Namespace: System.Web.Mail

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

Assembly: System.Web (in System.Web.dll)
0
 
LVL 8

Author Comment

by:bman9111
ID: 12647114
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


0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 12647139
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).
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Starting up a Project
Screencast - Getting to Know the Pipeline

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question