Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail from Class Library 2

Status
Not open for further replies.

NervousRex

Programmer
Sep 4, 2003
66
US
I don't know if I'm even going about this the proper way, but I am creating a .dll to include in my projects that is just a class that handles a certain area of the business that every application will use in the future.

I figure if something needs changed with this area of business, if built right I should only need to replace the .dll file? If I'm going about this wrong please let me know...but my main question is:

Is it possible to email from this class library? I tryed importing System.web.mail but it is not found.
 
Yes you can email from a .DLL. You need a reference to System.Web.

Yes you can just reference the dll you are creating and replace it if needed.
 
1) Absolutely! As long as you don't remove functionality or change method signatures, you can just copy the new .Dlls over the old ones. Proper teir design and abstraction will go along way in helping you create re-usable and easily maintainable code.

2) Yes, you'll need to add a reference to the library that has the mail name space. I can't recall the name off the top of my head, but if you google for: "VB.Net" "System.Web.Mail" reference you'll probrably find it.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Thanks guys

I wasn't adding a reference, I was simply trying to Imports System.Web and System.Web.Mail

I added a reference and its all good now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top