System.Web.Mail

E

Ed Bitzer

Would like to use this namespace but Visual Studio.Net 2003 cannot
locate and I do not see it listed under Project | Add Reference. Was
this not included this older version of VB.Net or Visual Studio? Is
there source code that I can download. I'm retired, VB.Net is a
hobby, and I would like to write a program to send a short weekly
message automatically (scheduled) to a dozen tennis players each week.
Found code snippets but all depend on System.Web.Mail.

Ed Bitzer
 
G

Guest

Would like to use this namespace but Visual Studio.Net 2003 cannot
locate and I do not see it listed under Project | Add Reference. Was
this not included this older version of VB.Net or Visual Studio? Is
there source code that I can download. I'm retired, VB.Net is a
hobby, and I would like to write a program to send a short weekly
message automatically (scheduled) to a dozen tennis players each week.
Found code snippets but all depend on System.Web.Mail.

..NET 1.1 has an older mail class - System.Net.Mail:

http://www.systemnetmail.com/

I don't know why MS changed the namespaces (2.0 FAQ:
http://www.systemwebmail.com/)

If all else fails, I've used QuikSoft's FreeSMTP and it works quite well:

http://www.quiksoft.com/freesmtp/
 
H

Herfried K. Wagner [MVP]

Ed,

Ed Bitzer said:
Would like to use this namespace but Visual Studio.Net 2003 cannot locate
and I do not see it listed under Project | Add Reference.

Add a reference to "System.Web.dll" and import the namespace ('Imports
System.Web.Mail').
 
E

Ed Bitzer

Spam Catcher said:
.NET 1.1 has an older mail class - System.Net.Mail:

http://www.systemnetmail.com/

I don't know why MS changed the namespaces (2.0 FAQ:
http://www.systemwebmail.com/)

If all else fails, I've used QuikSoft's FreeSMTP and it works quite
well:

http://www.quiksoft.com/freesmtp/

Have to do a bit more reading to understand these differences in
version but I like you suggestion of QuickSoft. Briefly checked out
their freeware and think that it will make my life much easier.

Thanks,

Ed
 
E

Ed Bitzer

Herfried K. Wagner said:
Ed,



Add a reference to "System.Web.dll" and import the namespace
('Imports System.Web.Mail').

Found the Reference to System.Web.dll and added which then allowed the
program to find the namespace reference with Imports System.Web.Mail.
Now I remain a bit confused by Spam Catcher's help which I find well
documented; however my older version does not accept Imports
System.Net.Mail. However you guys have me moving forward and I do
appreciate, already I have been successfully in sending a message so I
am 95% along with this weekly tennis notifier.

I thank you,

Ed
 
H

Herfried K. Wagner [MVP]

Ed Bitzer said:
however my older version does not accept Imports System.Net.Mail.
However you guys have me moving forward and I do appreciate, already
I have been successfully in sending a message so I am 95% along with this
weekly tennis notifier.

'System.Web.Mail' has been marked as obsolete in .NET 2.0 (VS 2005). Its
replacement is 'System.Net.Mail', which is not available in .NET 1.* (VS.NET
2002/2003).
 
E

Ed Bitzer

Ok - I got it and am off and running. Will look into upgrading but
when you only do this for a hobby and are retired, the decision to
have the latest bells and whistles is difficult. However the
confusion of requesting information and finding code examples on older
version tends to offset.

Ed
 

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