0% found this document useful (0 votes)
104 views40 pages

Abstract:: Mail Server Development

This document provides an overview of a mail server development project created using Active Server Pages .NET and Microsoft SQL Server 2000. The project allows for management of incoming and outgoing mail within an organization offline, including sending, receiving, deleting, and maintaining a history of sent mail. It aims to efficiently enable communication between organizational members in a simulation of a real mail system. The document also includes details on the company developing the project, Edge Technologies, and their vision, mission, and expertise. It outlines the software and hardware requirements and provides descriptions of the project modules.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views40 pages

Abstract:: Mail Server Development

This document provides an overview of a mail server development project created using Active Server Pages .NET and Microsoft SQL Server 2000. The project allows for management of incoming and outgoing mail within an organization offline, including sending, receiving, deleting, and maintaining a history of sent mail. It aims to efficiently enable communication between organizational members in a simulation of a real mail system. The document also includes details on the company developing the project, Edge Technologies, and their vision, mission, and expertise. It outlines the software and hardware requirements and provides descriptions of the project modules.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 40

MAIL SERVER DEVELOPMENT

Abstract:
The project titled Mail server development is designed using Active Server Pages .NET with Microsoft Visual Studio.Net 2005 as front end and Microsoft SQL Server 2000 as back end which works in .Net framework version 2.0. The coding language used is C# .Net. This project includes an exclusive mail management system. It is designed to receive mails sent by others inside an organization as well as send mails to other persons in the organization. It includes methods to delete unwanted mails received. It maintains the history of mails sent to other persons. All the features are included in this project allowing users to extensively manage their mails both incoming and outgoing in a particular organization offline. It is a Simulation of real time mail system.Efficient communication between persons in the organization is thus maintained effectively.

2.COMPANY PROFILE At Edge Technologies, We go beyond providing software solutions. We work with our clients technologies and business changes that shape their competitive advantages. Founded in 2000, Edge Technologies (P) Ltd. is a software and service provider that helps organizations deploy, manage, and support their business-critical software more effectively. Utilizing a combination of proprietary software, services and specialized expertise, Edge Technologies (P) Ltd. helps mid-to-large enterprises, software companies and IT service providers improve consistency, speed, and transparency with service delivery at lower costs. Edge Technologies (P) Ltd. helps companies avoid many of the delays, costs and risks associated with the distribution and support of software on desktops, servers and remote devices. Our automated solutions include rapid, touch-free deployments, ongoing software upgrades, fixes and security patches, technology asset inventory and tracking, software license optimization, application self-healing and policy management. At Edge Technologies, we go beyond providing software solutions. We work with our clients technologies and business processes that shape their competitive advantages. About The People As a team we have the prowess to have a clear vision and realize it too. As a statistical evaluation, the team has more than 40,000 hours of expertise in providing real-time solutions in the fields of Embedded Systems, Control systems, Micro-Controllers, c Based Interfacing, Programmable Logic Controller, VLSI Design And Implementation, Networking With C, ++, java, client Server Technologies in Java,(J2EE\J2ME\J2SE\EJB),VB & VC++, Oracle and operating system concepts with LINUX. Our Vision Dreaming a vision is possible and realizing it is our goal.

Our Mission We have achieved this by creating and perfecting processes that are in par with the global standards and we deliver high quality, high value services, reliable and cost effective IT products to clients around the world.

3.INTRODUCTION 3.1INTRODUCTION ABOUT THE PROJECT 3.2EXISTING SYSTEM:


There may be real benefits in using free web-based software such as Instant Messaging, email and social networking sites (such as Gmail, Face book, Skype, Linked In etc). These systems should be used to complement rather than replace the organization messaging systems as they can undermine official communication channels and organizational groupings. Any official communications must be made using organization systems.

3.3PROPOSED SYSTEM:
With an increasing portion of an organizations intellectual property now residing in email systems, email has become a business-critical application. And with Instant Messaging (IM) rapidly gaining in popularity, enterprises must also support IM without increasing their exposure to risk. Our proposed system offers industry leading messaging management solutions to help overcome the challenge of ensuring the security and availability of messaging systems and information offline. Comprised of market-leading security and archiving products, the proposed solution helps optimize the performance of Messaging systems, reduce the risk of downtime, control costs, protect confidential information from leakage, and demonstrate compliance with corporate IT policies and regulations.

4. SOFTWARE REQUIREMENT SPECIFICATION 4.1 INTRODUCTION 4.2 GENERAL DESCRIPTION


In a company individual mails are prohibited, but employees have to communicate. There must be a means for communication to be enabled. We should also enable privacy for the employees in the organization. This project is designed to enable the communication between employees and also to provide security for company data. Sharing company information through online among the employees doesnt provide security to the data that is transferred. If the data contains securable details about the management then it cause severe collapse and leads to demolition. To avoid this our project provides security to share data independently among the employees. With an increasing portion of an organizations intellectual property now residing in email systems, email has become a business-critical application. And with Instant Messaging (IM) rapidly gaining in popularity, enterprises must also support IM without increasing their exposure to risk. Our proposed system offers industry leading messaging management solutions to help overcome the challenge of ensuring the security and availability of messaging systems and information. Comprised of market-leading security and archiving products, the proposed solution helps optimize the performance of Messaging systems, reduce the risk of downtime, control costs, protect confidential information from leakage, and demonstrate compliance with corporate IT policies and regulations.

Module Description:
Modules List:
1. Home module 2. Employee module. 3. Admin module. 4. Password Change module. 5. Contact module.

1. Home module : This is the module where the authentication of the user is checked .This is the home page with the login form.The validation is set up by password length and empty space. Only if the details provided are authenticated the person gets logged in.

2. User module: The user logs in with the userid and password given to him. Whenever a new employ registers, the email id specific for the organization is created to allow them to access that email id in the organization. All new employees should be a member of particular group. At the time of login their group name is also validated for each user. 3. Admin module: Whenever a new employ joins it is the admin job to update their details. The admin can also view the customers. The admin has also provision to update the organization profile. The admin is responsible to generate the email id for the new employee for specific groups. 4. Password Change Module: Once an Employee joins an Organisation ,he s provided an User Id and Password for mailing.If the user wishes to change his password or feels insecured about his password he can change his password using this module. 5.Contact Module The Ids provided are useful for the people within the organization to communicate. If a person outside the Organization wants to mail them, he/she can mail to the organization using this module provided LAN.

4.3 FUNCTIONAL REQUIREMENTS 4.3.1 HARDWARE CONFIGURATION


SYSTEM HARD DISK FLOPPY DRIVE MONITOR MOUSE RAM KEYBOARD : PENTIUM III 700 MHZ : 40 GB : 1.44 MB : 15 VGA COLOUR MONITOR : LOGITECH. : 128 MB : 110 KEYS ENHANCED.

4.3.2

SOFTWARE CONFIGURATION
: : : : : WINDOWS XP VISUAL STUDIO .NET 2005 ACTIVE SERVER PAGES.NET VERSION 2.0 C#.NET

OPERATING SYSTEM ENVIRONMENT WEB TECHNOLOGY .NET FRAMEWORK LANGUAGE

5.DESIGN 5.1 USE-CASE DIAGRAM

5.2 CLASS DIAGRAM


home user admin database()

admin REGISTRATION ADD NEW USER VIEW MAILDETAILS() USERDETAILS()

user SEND MAIL GROUP INBOX() OUTBOX()

5.3 ER DIAGRAM

Registratio n

Add and View New User

Admin login

View Mail

Mail Server Developmen t

User Send Mail View Inbox View Outbox View User Details

DATABASE DETAILS: TABLE NAME: EMPDETAILS

TABLE NAME: INBOX

TABLE NAME: TRASH

MODULE INPUT AND OUTPUT

SCREEN SHOTS: Home page

About us

Mission

Services

Clients

Contact us:

Sending mail to admin:

Admin home page:

New employee registration:

Inbox of admin:

User home page:

Outbox:

Confirming delete:

Deleteing the message:

4. IMPLEMENTATION FEATURES 4.1 FEATURES OF C#.NET


1. Introduction C# is one of the families of languages Microsoft has designed to be part of its .NET framework. This paper gives a comprehensive introduction to C#, but before we start it is necessary to outline some of the .NET concepts that will underpin the discussion in this paper. C# is part of the .NET Common Language Infrastructure (CLI). The CLI is a framework that enables the multiple .NET languages to talk to each other, and is specifically designed for strongly types languages. The CLI is comprised of the Common Intermediate Language (CIL) a common machine independent language into which all .NET applications are compiled, the Common Type System (CTS) a set of types that can be used interchangeably between the .NET languages and the Virtual Execution System (VES) which just-in-time compiles the CIL into native assembly code. The complete set of rules that enable all .NET language to talk to each other is called the Common Language System (CLS). A compiled C# program also contains a block of metadata (data about the program itself) called a manifest. This metadata allows reflection and effectively eliminates the need for the registry. THE .NET FRAMEWORK The .NET Framework is a new computing platform that simplifies application development in the highly distributed environment of the Internet.

OBJECTIVES OF .NET FRAMEWORK: 1. To provide a consistent object-oriented programming environment whether object codes is stored and executed locally on Internet-distributed, or executed remotely. 2. To provide a code-execution environment to minimizes software deployment and guarantees safe execution of code. 3. Eliminates the performance problems. There are different types of application, such as Windows-based applications and Web-based applications. To make communication on distributed environment to ensure that code be accessed by the .NET Framework can integrate with any other code. COMPONENTS OF .NET FRAMEWORK 1. THE COMMON LANGUAGE RUNTIME (CLR): The common language runtime is the foundation of the .NET Framework. It manages code at execution time, providing important services such as memory management, thread management, and remoting and also ensures more security and robustness. The concept of code management is a fundamental principle of the runtime. Code that targets the runtime is known as managed code, while code that does not target the runtime is known as unmanaged code. THE .NET FRAME WORK CLASS LIBRARY: It is a comprehensive, object-oriented collection of reusable types used to develop applications ranging from traditional command-line or graphical user interface (GUI) applications to applications based on the latest innovations provided by ASP.NET, such as Web Forms and XML Web services. The .NET Framework can be hosted by unmanaged components that load the common language runtime into their processes and initiate the execution of managed code, thereby creating a software environment that can exploit both managed and unmanaged features.

The .NET Framework not only provides several runtime hosts, but also supports the development of third-party runtime hosts. Internet Explorer is an example of an unmanaged application that hosts the runtime (in the form of a MIME type extension). Using Internet Explorer to host the runtime to enables embeds managed components or Windows Forms controls in HTML documents. FEATURES OF THE COMMON LANGUAGE RUNTIME: The common language runtime manages memory; thread execution, code execution, code safety verification, compilation, and other system services these are all run on CLR. ASP.NET ASP.NET is the next version of Active Server Pages (ASP); it is a unified Web development platform that provides the services necessary for developers to build enterpriseclass Web applications. While ASP.NET is largely syntax compatible, it also provides a new programming model and infrastructure for more secure, scalable, and stable applications. ASP.NET is a compiled, NET-based environment, we can author applications in any .NET compatible language, including Visual Basic .NET, C#, and JScript .NET. Additionally, the entire .NET Framework is available to any ASP.NET application. Developers can easily access the benefits of these technologies, which include the managed common language runtime environment (CLR), type safety, inheritance, and so on. ASP.NET has been designed to work seamlessly with WYSIWYG HTML editors and other programming tools, including Microsoft Visual Studio .NET. Not only does this make Web development easier, but it also provides all the benefits that these tools have to offer, including a Security. Robustness. Productivity. Performance.

GUI that developers can use to drop server controls onto a Web page and fully integrated debugging support. Developers can choose from the following two features when creating an ASP.NET application. Web Forms and Web services, or combine these in any way they see fit. Each is supported by the same infrastructure that allows you to use authentication schemes; cache frequently used data, or customizes your application's configuration, to name only a few possibilities. Web Forms allows us to build powerful forms-based Web pages. When building these pages, we can use ASP.NET server controls to create common UI elements, and program them for common tasks. These controls allow us to rapidly build a Web Form out of reusable built-in or custom components, simplifying the code of a page. An XML Web service provides the means to access server functionality remotely. Using Web services, businesses can expose programmatic interfaces to their data or business logic, which in turn can be obtained and manipulated by client and server applications. XML Web services enable the exchange of data in client-server or server-server scenarios, using standards like HTTP and XML messaging to move data across firewalls. XML Web services are not tied to a particular component technology or object-calling convention. As a result, programs written in any language, using any component model, and running on any operating system can access XML Web services. Each of these models can take full advantage of all ASP.NET features, as well as the power of the .NET Framework and .NET Framework common language runtime. Accessing databases from ASP.NET applications is an often-used technique for displaying data to web site visitors. ASP.NET makes it easier than ever to access databases for this purpose. It also allows us to manage the database from your code. ASP.NET provides a simple model that enables Web developers to write logic that runs at the application level. Developers can write this code in the global.aspx text file or in a compiled class deployed as an assembly. This logic can include application-level events, but developers can easily extend this model to suit the needs of their Web application. ASP.NET provides easy-to-use application and session-state facilities that are familiar to ASP developers and are readily compatible with all other .NET Framework APIs.

ASP.NET offers the IHttpHandler and IHttpModule interfaces. Implementing the IHttpHandler interface gives you a means of interacting with the low-level request and response services of the IIS Web server and provides functionality much like ISAPI extensions, but with a simpler programming model. Implementing the IHttpModule interface allows you to include custom events that participate in every request made to your application. ASP.NET takes advantage of performance enhancements found in the .NET Framework and common language runtime. Additionally, it has been designed to offer significant performance improvements over ASP and other Web development platforms. All ASP.NET code is compiled, rather than interpreted, which allows early binding, strong typing, and just-in-time (JIT) compilation to native code, to name only a few of its benefits. ASP.NET is also easily factorable, meaning that developers can remove modules (a session module, for instance) that are not relevant to the application they are developing.

4.2 FEATURES OF SQL SERVER 2000


The OLAP Services feature available in SQL Server version 7.0 is now called SQL Server 2000 Analysis Services. The term OLAP Services has been replaced with the term Analysis Services. Analysis Services also includes a new data mining component. The Repository component available in SQL Server version 7.0 is now called Microsoft SQL Server 2000 Meta Data Services. References to the component now use the term Meta Data Services. The term repository is used only in reference to the repository engine within Meta Data Services SQL-SERVER database consist of six type of objects, They are, 1. TABLE 2. QUERY 3. FORM 4. REPORT 5. MACRO

CODING
Login form: using using using using using using using using using using using System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

public partial class Login : System.Web.UI.Page { //SqlConnection conn = new SqlConnection("server=.;uid=sa;database=mail"); protected void Page_Load(object sender, EventArgs e) { } protected void LinkButton1_Click(object sender, EventArgs e) { Response.Redirect("~/new_employee.aspx"); } protected void Login_Button_Click(object sender, EventArgs e) { if (Username_Textbox.Text.Trim() == "Admin") { if (Password_Textbox.Text.Trim() == "Admin") Response.Redirect("~/admin.aspx"); else RegisterStartupScript("msg", "<script>alert('Incorrect Password')</script>"); } else { SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["connectionString"]); conn.Open(); SqlCommand cmd = new SqlCommand("select uid, p_word, group from userdetails", conn); SqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { if (dr["uid"].ToString() == Username_Textbox.Text.Trim()) {

if (dr["p_word"].ToString() == Password_Textbox.Text.Trim()) { if (dr["group"].ToString() == DropDownList1.Text) { Session["uid"] = dr["uid"].ToString(); Response.Redirect("~/user.aspx"); break; } } else RegisterStartupScript("msg", "<script>alert('Incorrect Password')</script>"); } else RegisterStartupScript("msg", "<script>alert('Invalid User')</script>"); } } } }

New user registration:


using using using using using using using using using using using using System; System.Data; System.Configuration; System.Collections; System.Web; System.Web.Mail; System.Web.Security; System.Web.UI; System.Data.SqlClient; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

public partial class new_employee : System.Web.UI.Page { SqlConnection conn = new SqlConnection("server=.;uid=sa;database=mail"); protected void Page_Load(object sender, EventArgs e) { conn.Open(); SqlCommand cmd1 = new SqlCommand("select max(uid) from userdetails", conn); string p = Convert.ToString(cmd1.ExecuteScalar()); Id_Text.Text = (Convert.ToInt16(p) + 1).ToString(); conn.Close(); } protected void Ok_Button_Click(object sender, EventArgs e) { conn.Open(); try

SqlCommand cmd1 = new SqlCommand("insert into userdetails (name,dob,gender,email_id,p_word,group,designation,pan_no,addr)values('" + Name_Text.Text + "','" + GetDob() + "','" + GetGender() + "','" + Email_Text.Text + "','" + Pword_Text.Text + "','" + DropDownList4 .Text + "','" + Desg_Text.Text + "','" + Panno_Text.Text + "','" + Addr_Text.Text + "')", conn); cmd1.ExecuteNonQuery(); conn.Close(); RegisterStartupScript("msg", "<script>alert('Values are inserted')</script>"); } catch (Exception ex) { } } private string GetDob() { return (DropDownList3.SelectedItem.Value + "/" + DropDownList2.SelectedItem.Value + "/" + DropDownList1.SelectedValue); } private char GetGender() { if (RadioButton1.Checked == true) return 'M'; else return 'F'; } protected void Cancel_Button_Click(object sender, EventArgs e) { Response.Redirect("~/login.aspx"); } protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs { if (Page.IsPostBack == true) { string month; int yr; ArrayList date = new ArrayList(); int a = Int16.Parse(DropDownList1.SelectedValue); yr = (a % 4); month = DropDownList2.Text; switch (month) { case "Jan": case "Mar": case "May": case "Jul": case "Aug": case "Oct": case "Dec": for (int i = 1; i <= 31; i++) date.Add(i); break;

e)

case "Feb": if (yr == 0) { for (int i = 1; i <= 29; i++) date.Add(i); break; } else { for (int i = 1; i <= 28; i++) date.Add(i); break; } case "Apr": case "Jun": case "Sep": case "Nov": for (int i = 1; i <= 30; i++) date.Add(i); break; } DropDownList3.DataSource = date; DropDownList3.DataBind();

} } }

User deleting the msg:


using using using using using using using using using using using System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

public partial class Employee_confirm_del : System.Web.UI.Page { string str; protected void Page_Load(object sender, EventArgs e) { str = Request.QueryString["var"]; SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["connectionString"]); conn.Open(); conn.Close();

} protected void LinkButton1_Click(object sender, EventArgs e) { string id, name_f, name_t, emailid_f, emailid_t, m_subject, m_body; SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["connectionString"]); conn.Open(); SqlCommand cmd2 = new SqlCommand("select * from inmail where msg_id = " + str,conn); SqlDataReader dr = cmd2.ExecuteReader (); if (dr.Read()) { id = dr["emp_id"].ToString(); name_f = dr["name_f"].ToString(); name_t = dr["name_t"].ToString(); emailid_f = dr["emailid_f"].ToString(); emailid_t = dr["emailid_t"].ToString(); m_subject = dr["m_subject"].ToString(); m_body = dr["m_body"].ToString(); dr.Close(); SqlCommand cmd6 = new SqlCommand("insert into delmail values ('" + id + "','" + name_f + "','" + name_t + "','" + emailid_f + "','" + emailid_t + "','" + m_subject + "','" + m_body + "')", conn); cmd6.ExecuteNonQuery(); SqlCommand cmd = new SqlCommand("delete from inmail where msg_id = " + str, conn); cmd.ExecuteNonQuery(); conn.Close(); } dr.Dispose(); RegisterStartupScript("msg", "<script>alert('Message deleted permanentely')</script>"); } }

Inbox:
using using using using using using using using using using using System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

public partial class Employee_inbox : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) {

SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["connectionString"]); conn.Open(); SqlCommand cm = new SqlCommand("select * from inmail where name_t = '" +Session ["empname"] + "'", conn); SqlDataReader data = cm.ExecuteReader(); if (data.Read()) { } else { Label1.Text = "No inbox currently present"; } conn.Close(); } }

Compose:
using using using using using using using using using using using System; System.Data; System.Data.SqlClient; System.Configuration; System.Collections; System.Web; System.Web.Security; System.Web.UI; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts; System.Web.UI.HtmlControls;

public partial class Employee_compose_admin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Label6.Visible = false; LinkButton1.Visible = false; SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["connectionString"]); conn.Open(); SqlCommand cmd = new SqlCommand("select emailid from empdetails where empid= '" + Session ["empid"] + "'", conn); From_Text .Text = cmd.ExecuteScalar().ToString(); } protected void Ok_But_Click(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["connectionString"]); conn.Open(); //SqlCommand cmd = new SqlCommand("select emp_name from empdetails where empid= '" + Session ["empid"] + "'", conn);

//string name = cmd.ExecuteScalar().ToString(); SqlCommand cmd1 = new SqlCommand("insert into inmail values('" + Session["empid"] + "','" + Session ["empname"] + "','admin','" + From_Text.Text + "','" + To_Text .Text + "','" + Sub_Text.Text + "','" + Body_Text.Text + "')", conn); cmd1.ExecuteNonQuery(); Label6.Visible = true; LinkButton1.Visible = true; } protected void LinkButton1_Click(object sender, EventArgs e) { Label6.Visible = false; LinkButton1.Visible = false; Sub_Text.Text = ""; Body_Text.Text = ""; } protected void LinkButton2_Click(object sender, EventArgs e) { Response.Redirect("~/Employee/emp_home.aspx"); } }

CONCLUSION AND FUTURE SCOPE When the email stops, so does your business. The proposed solution simplifies messaging infrastructure management by providing a comprehensive enterprise solution to help ensure that messaging systems and data are always secure and readily available. With industry- leading, award-winning products and expert services, the proposed system delivers a unique solution to reduce the risk of messaging downtime, all while helping you protect email. Every application has its own merits and demerits. The project has covered almost all the requirements. Further requirements and improvements can easily be done since the coding is mainly structured or modular in nature. Changing the existing modules or adding new modules can append improvements. Further enhancements can be made to the application, so that the web site functions very attractive and useful manner than the present one.

REFERENCES 1)http://books.google.co.in/books?id=av-5iDeXo4C&pg=PT22&dq=asp.net+social+networking+sites&hl=en&ei=izvrTrW4IYbMrQeCKGGCQ&sa=X&oi=book_result&ct=bookthumbnail&resnum=3&ved=0CFQQ6wEwAg#v=onepage&q=asp.net%20social%20networking %20sites&f=false 2) http://books.google.co.in/books?

id=vNYl94_jilsC&pg=PA11&dq=mail+server+system&hl=en&sa=X&ei=ioxfT3jHc3HrQf36uCXBg&ved=0CEcQ6AEwAA#v=onepage&q=mail%20server %20system&f=false

You might also like