ASP.NET
  Home arrow ASP.NET arrow Designing the Interface and More for an On...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Designing the Interface and More for an Online E-Mail System in ASP.NET 2.0
By: Xianzhong Zhu
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2007-06-12

    Table of Contents:
  • Designing the Interface and More for an Online E-Mail System in ASP.NET 2.0
  • Designing the Data Tier
  • Check Your Mailbox List
  • Check the E-mails in Your Mailbox
  • Creating Folders

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Designing the Interface and More for an Online E-Mail System in ASP.NET 2.0


    (Page 1 of 5 )

    Picking up from where we left off last time, we're going to start developing the components that we will need for our integrated online email system. We will start with designing the interface, then move on to the data tier.
    A downloadable .rar file is available for this article.

    Labor over the Solution

    From now on, we are going to explore how to develop each basic component that constitutes an integrated online e-mail system.

    Designing the Interface

    To enhance the extensibility and flexibility of this system, we've designed two interfaces: IFolder and IMail.

    1. IFolder Interface

    This interface declares the basic methods associated with folders, such as the method GetFolders for getting information about all mailboxes, the method NewFolder for creating a new mailbox, and so forth. The following Figure 3 gives us the class diagram of the IFolder interface.

    Figure 3-the class diagram of the IFolder interface

    As is shown in Figure 3, we encapsulate all the basic mailbox operation-related declarations into a single interface, which is a good practice in real life. Moreover, below the IFolder interface, we've defined a Folder class which is derived from the abstract IFolder interface to implement all the methods declared in its parent. Since all the modules are small and basic, and even self-explanatory, we do not explain too much about them here. We'll clarify some of them in the next section and in later use.

    2. IMail Interface

    Compared to the IFolder interface declared above, this interface is more important, because it encapsulates nearly all the underlying operations relevant to e-mail, i.e. getting and modifying the system profile information, obtaining all the e-mail messages or those from single mailbox, sending e-mail, adding the e-mail sent to the mailbox, adding the e-mail's attachments, moving/deleting e-mail, and fetching the e-mail's attachments. That's 11 function in all. Figure 4 below gives you a more descriptive and clearer approach; it is the class diagram for the IMail interface.

    Figure 4-the class diagram for the IMail interface

    Seen from the figure, a new class derived from the parent IMail interface, namely Mail, is also defined. Mail is responsible for implementing all the related methods declared in its abstract parent interface. We choose not to talk about it much here, and to let the practical examples later explain everything.

    More ASP.NET Articles
    More By Xianzhong Zhu


       · HiThis e mail system does not read from my configured pop3 account.It just shows...
       · Hi my friend there,I'm willing to help you out. When I debugged this sample the...
     

    ASP.NET ARTICLES

    - Adding Content to a Static ASP.NET Website
    - Building a Static ASP.NET Website in a Basic...
    - Develop Your First ASP.NET Website with Visu...
    - Run ASP.NET in Windows XP Home with Cassini ...
    - How to Test a Web Application
    - How to Add Code and Validation Controls to a...
    - Working in Source and Split Views to Build a...
    - How to Build a Web Form for a One-Page Web A...
    - How to Develop a One-Page Web Application
    - An ASP.NET Web Application in Action
    - Developing ASP.NET Web Applications
    - An Introduction to ASP.NET Web Programming
    - Introduction to the ADO.NET Entity Framework...
    - Completing an In-Text Advertising System und...
    - Programming an In-Text Advertising System un...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek