Sei sulla pagina 1di 78

0

CHAPTER 1

1
1.1. PROJECT INTRODUCTION

Voice over IP (VoIP) offers many unique capabilities to its users. An important driving force

behind the use of IP telephony is cost savings, especially for corporations with large data

networks. By carrying voice traffic over IP-based networks, companies can reduce or eliminate

the toll charges associated with transporting calls over the Public Switched Telephone Network

(PSTN). Other benefits taking advantage of advancements in IP-Telephony (IPTel) include the

integration of voice and data applications and the flexibility of creating new services rapidly and

with lower complexity. n professional world all the communications are being done by emails.

Now a day’s mailing server is playing a very important role in our social and economical life.

It is one of the secure and fast communicating mediums for a modern era. The mail server is also

a good source to connect with your friends; it helps people to be active in social life.

Social network helps a person both continue their existing relationship and finding new friends

by reaching out the people you never met before.


2
CHAPTER 2

3
WORKING ENVIRONMENT

2.1. HARDWARE REQUIREMENTS

● System : Windows
● Memory space : Less than 1 GB
● Ram : 2 GB

2.2. SOFTWARE REQUIREMENTS

● Operating system : Windows 7 and above


● Front end : Visual studio 2012 and above
Back End : SQL server

2.3. SYSTEM SOFTWARE

2.3.1. Windows Operating System

Windows is Microsoft's flagship operating system (OS), the de facto standard for home and

business computers. The graphical user interface (GUI)-based OS was introduced in 1985 and has

been released in many versions since then, as described below. Microsoft got its start with the

partnership of Bill Gates and Paul Allen in 1975. Gates and Allen co-developed Xenix (a version

of Unix) and also collaborated on a BASIC interpreter for the Altair 8800. The company was

incorporated in 1981.
4
2.3.2. Visual studeo Introduction

From the very first versions of Windows, Microsoft created an integrated development
environment (IDE)so that programmers could complete their projects for these operating
systems. We are talking about Visual Studio. With the imminent launch of Windows 8, they
have decided to launch a new version: Visual Studio 2012. . Visual Studio 2012 is the
development environment designed by Microsoft for Windows 8

Visual Studio 2012 includes all the tools necessary to be able to create all kinds of
projects for Microsoft operating systems, but furthermore, it's also perfectly capable
of creating websites or, even, programs for mobiles and tablets.
Thanks to the elements that are part of Visual Studio 2012 any programmer will have
the possibility to complete a full project without any need to resort to other
programs or external elements.

2.3.3. Features & Specifications

Some of the features of the new version of Microsoft Visual Studio are:

 Detects cloned code.


 Automatically shows IntelliSense, it will no longer be necessary to call forth the
tool.
 Complete compatibility with Windows Azure.
 Unique IDE with total compatibility to create applications for Windows 8.
 Use of HTML5, CSS3 and JavaScript for websites.
 Full implementation of ASP.NET.

The graphical environment of Visual Studio 2012 has undergone a change, being very
similar to the Metro graphical interface and the general product line that Microsoft
had already marked after launching Microsoft Office 2013 Preview, even though it
does maintain the code color identification which so many users demanded after they
had originally left it out of the Beta version of the program (called Visual Studio

5
2.3.4. Applications

These are the basics of Android applications

● Windows application
● Web application
● Class design
● Mapping design
● Database design
● Open box design
● Object browser
● Admin
● Office

2.3.5. FEATURES OF C#.NET

C# is object oriented programming language. It provides a lot of features that are given
below.

1. Simple
2. Modern programming language
3. Object oriented
4. Type safe
5. Interoperability
6. Scalable and Updateable
7. Component oriented
8. Structured programming language
9. Rich Library
10. Fast speed

6
2.3.6. THE .NET FRAMEWORK

.NET is a software framework which is designed and developed by Microsoft. The first version

of .Net framework was 1.0 which came in the year 2002. In easy words, it is a virtual machine for

compiling and executing programs written in different languages like C#, VB.Net etc.

It is used to develop Form-based applications, Web-based applications, and Web services. There

is a variety of programming languages available on the .Net platform, VB.Net and C# being the

most common ones are . It is used to build applications for Windows, phone, web etc. It provides

a lot of functionalities and also supports industry standards.

.NET Framework supports more than 60 programming languages in which 11 programming

languages are designed and developed by Microsoft. The remaining Non-Microsoft

Languages which are supported by .NET Framework but not designed and developed by

Microsoft.

11 Programming Languages which are designed and developed by Microsoft are:

 C#.NET

 VB.NET

 C++.NET

 J#.NET

 F#.NET

 JSCRIPT.NET

 WINDOWS POWERSHELL

 IRON RUBY

 IRON PYTHON

 C OMEGA
 ASML(Abstract State Machine Language)

Main Components of .NET Framework

Common Language Runtime(CLR): CLR is the basic and Virtual Machine component of

the .NET Framework. It is the run-time environment in the .NET Framework that runs the codes

and helps in making the development process easier by providing the various services such as

remoting, thread management, type-safety, memory management, robustness etc.. Basically, it is

responsible for managing the execution of .NET programs regardless of any .NET programming

language. It also helps in the management of code, as code that targets the runtime is known as

the Managed Code and code doesn’t target to runtime is known as Unmanaged code.

Framework Class Library(FCL): It is the collection of reusable, object-oriented class libraries

and methods etc that can be integrated with CLR. Also called the Assemblies. It is just like the

header files in C/C++ and packages in the java. Installing .NET framework basically is the

installation of CLR and FCL into the system. Below is the overview of .NET Framework
Is .NET application platform dependent or platform independent?

The combination of Operating System Architecture and CPU Architecture is known as the

platform. Platform dependent means the programming language code will run only on particular

Operating System. A .NET application is platform dependentbecause of the .NET framework

which is only able to run on the Windows-based operating system. The .Net application is

platform independent also because of Mono framework. Using Mono framework the .Net
application can run on any Operating System including windows. Mono framework is a third

party software developed by Novell Company which is now a part of Micro Focus Company. It

is a paid framework.

1. CLR (Common Language Runtime) : It is a run-time environment which executes


the code written in any .NET programming language. .Net framework provides the
support for many languages like C#, F#, C++, Cobra, Jscript.Net, VB.Net, Oxygene etc
2. FCL (Framework Class Library) : A large number of class libraries are present in
this framework which is known as FCL.
3. Types of Applications : Mainly the applications which are built in .Net framework is
divided into the following three categories :
 WinForms : Form – Based applications are considered under this category. In
simple terms, we can say client based applications which read and writes the file
system comes under this category.
 ASP .NET : Web-Based applications come under this category. ASP.Net is a
framework for web and it provides the awesome integration of HTML, CSS and
JavaScript which makes it useful to develop the web applications, websites and
web services. Web services were added in .Net Framework 2.0 and considered
as a part of ASP.NET web applications.
 ADO .NET : It includes the application which are developed to communicate with
the database like MS SQL Server, Oracle etc. comes. It mainly consists of classes
that can be used to connect, retrieve, insert and delete data.
4. WPF (Windows Presentation Foundation) : Windows Presentation Foundation
(WPF) is a graphical subsystem given by Microsoft which uses DirectX and is used in
Windows-based applications for rendering UI (User Interface). WPF was initially
released as part of .NET Framework 3.0 in 2006 and previously known as “Avalon”.
5. WCF (Windows Communication Foundation) : It is a framework for building
connected and service-oriented applications used to transmit the data as asynchronous
from one service endpoint to another service point. It was previously known as
the Indigo.
6. WF (Windows Workflow Foundation) : It is a technology given by Microsoft which
provides a platform for building workflows within .Net applications.
7. Card Space : It is a Microsoft .NET Framework software client which is designed to
let users provide their digital identity to online services in a secure, simple and trusted
way.
8. LINQ (Language Integrated Query) : It is introduced in .Net framework version 3.5.
Basically, it is a query language used to make the query for data sources with VB
or C# programming languages.
9. Entity Framework : It is open–source ORM (Object Relational Mapping) based
framework which comes into .Net Framework version 3.5. It enables the .Net developer
to work with database using .Net objects. Before entity framework, .Net developers have
performed a lot of things related database. Like to open a connection to the database,
developers have to create a Data Set to fetch or submit the data to the database,
convert data from the Data Set to .NET objects or vice-versa. It creates the difficulties for
developers and also it was the error-prone process, then “Entity Framework” comes to
automate all these database related activities for the application. So, Entity Framework
allows the developers to work at a higher level of abstraction.
Note : REST (Representational State Transfer) and AJAX were added in .Net
Framework 3.5 as an extension and services of ASP.NET for enhancing web services of
.NET Framework.
10. Parallel LINQ (Language Integrated Query) : It comes in .Net Framework version
4.0 and also termed as PLINQ. It provides a concurrent query execution engine
for LINQ. It executes the LINQ in parallel such that it tries to use as much processing
power system on which it is executing.
11. TPL (Task Parallel Library) : It is a set of public types and APIs. It allows the
developers to be more productive by simplifying the process of adding concurrency and
parallelism to .Net applications.
12. .NET API For Store/UWP Apps : In 2012, Microsoft added some APIs for
creating UWP(Universal Windows Platform) apps for Windows using C# or VB.
13. Task-Based Asynchronous Model : It is model used to describe the asynchronous
operations and tasks in .Net Framework.

2.3.10. THE CLASS LIBRARY

There are three types of class libraries that you can use:

 Platform-specific class libraries have access to all the APIs in a given platform (for
example, .NET Framework, Xamarin iOS), but can only be used by apps and libraries
that target that platform.
 Portable class libraries have access to a subset of APIs, and can be used by apps
and libraries that target multiple platforms.
 .NET Standard class libraries are a merger of the platform-specific and portable
library concept into a single model that provides the best of both.

2.3.11. LANGUAGES SUPPORTED BY .NET

1) APL
2) c++
3) c#
4) Cobol
5) Component Pascal
6) Curriculum
7) Eiffel
8) Forth
9) Fortran
10) Haskell
11) Java Language
12) Microsoft JScript
13) Mercury
14) Mondrian
15) Oberon
16) Oz
17) Pascal
18) Perl
19) Python
20) RPG
21) Scheme
22) Small Talk
23) Standard ML
24) Microsoft Visual Basic
25) j#
26) vb
27) CAT
28) CFML
29) Clarion #
30) Cobra
31) CULE
32) E#
33) Flash
34) BETA
35) Ada
36) ASML
37) Assembly
38) BAsic
39) Basic Variants
40) BF
41) Boo
42) Caml
43) G#
44) IL/MSIL
45) Lexico
46) LISP
47) LISP-like
48) PHP
49) Scala
50) Spry and many more....
9
CHAPTER 3

10
SYSTEM ANALYSIS

3.1. Feasibility Study

This proposed system is feasible because the application deals with normal tasks such as
inbox, sent chat etc.,which is not a complex job, moreover there are various types in this study
which are given below has been satisfied by the application.

3.1.1. Technical feasibility

The technical features for this application to work is very simple that it requires some
softwares such as

1) Visual studeo (Available in micosoft)

2) VOIP SDK file (Available in Website)

Which are open source softwares that can easily accessible by anyone so by stating all
these we say that our application is technically feasible.

3.1.2. Economical feasibility

The prerequisites that are needed from the user aspect is an internet connection ,a mobile
phone and from the developers side he/she needs only a normal PC and with associated software
installed in it,thus our application is economically feasible .

3.1.3. Social feasibility


For any kind application to be feasible in social aspect it depends on the acceptance of the
user and in which domain its being deployed,in our case the main purpose is for the benefit of the
SRM-BCA students and other common people(for educational purpose).And this prove that our
application is socially feasible.

11
3.2. Existing system

Many blogs and websites are already in existence for the students to access the notes and
prepare for their exams . In addition to it, there are some applications that can be downloaded and
referred for exam purpose and which also contain sgpa ,cgpa calculator .

3.3. Drawbacks of Existing system


We can not use the voice-messaging systems. The voice-messaging system is less economical for

the smaller companies. Cost is very high in big company

3.4. Proposed system & its advantages


A solution of the voice mailbox system based on digital voice card and VoIP is put forward. Our

design implementation also supports user authentication mechanism used to verify that only

registered users can initiate or receive mail.

3.5. BENEFITS OF PROPOSED SYSTEM:

● Add contact
● Send message
● Receive message
● Add group
● Chat Instant message

12
3.6. SCOPE OF THE PROJECT:

● It supports almost 80% interanet connected system or internet connected


system
● Less memory space.
.

13
CHAPTER 4

14
SYSTEM DESIGN

4.1. Use Case Diagram

Fig 4.1

15
4.2. Activity Diagram

Fig 4.2
16
CHAPTER 5

17
PROJECT DESCRIPTION

5.1. OBJECTIVE

• This applications aims to develop Introduces the system architecture of the voice mailbox
system based on VoIP
It has a certain guiding significance to the relative projects' development based on digital
voice card

5.2. MODULE DESCRIPTION

5.2.1. User Agents


– This module help to User Agents each User Agent consists of a User Agent Client
(UAC) and a User Agent Server (UAS).
– The UAC is a logical entity to create new SIP requests. The UAS is responsible
for receiving SIP requests and sending the corresponding responses along
with suitable processing of those SIP requests.

18
5.2.2. SIP network servers

– This module help These include the registrar server and a


– proxy/redirect server. The registrar
– Server receives updates from users about their current addresses. It
maintains the current location of each user in the form of a database

5.2.3. Conference server

– It has been implemented to provide


– multi-point communication support

19
5.3. IMPLEMENTATION

5.3.1. Graphic User Interface

GUI is a built on web application for ease of use. The user uses the GUI to enter
the input(posts) and view inbox, sent, with attachment and search facilities.

5.3.2. Model

Advanced concepts like shared information, chat design and animations are

implemented in this application. SQL server database is used for interoperability.

5.4. MAINTENANCE

Any changes will be updated and the product will be re-released. As the data is in the sql

server there will be no problem with the data that is stored within the application.

21
CHAPTER 6

22
SYSTEM TESTING
6.1. TESTING DEFINITION
Testing is vital to the success of the system testing makes a logical assumption that
if all parts of the system are correct,the goal will be successfully achieved. In the testing process
we test the actual system in an organization and gather errors from the new system operates in full
efficiency as stated. System testing is the stage of implementation, which is aimed to ensuring
that the system works accurately and efficiently.

In the testing process we test the actual system in an organization and gather
errors from the new system and take initiatives to correct the same. All the front-end and back-
end connectivity are tested to be sure that the new system operates in full efficiency as stated.
System testing is the stage of implementation,which is aimed at ensuring that the system works
accurately and efficiently.

The main objectives of testing is to uncover errors from the system. For the
uncovering process we have to give proper input data to the system. So we should have more
conscious to give input data. It is important to give correct inputs to efficient testing. So we can
have more conscious to give the input data as a important one.

Testing is done for each module. After testing all the modules are integrated
and testing of the final system is done with the test data, specially designed to show that the
system will operate successfully in all its aspects condition. Thus the system testing is a
confirmation that all is correct and an opportunity to show the user that the system works.
Inadequate testing or non-testing leads to errors that may appear few months later.

23
6.2. TESTING OBJECTIVE
This will create two problems, time delay between the cause and appearance of the
problem. The effect of the system errors on files and records within the system. The purpose of
the system testing is to consider all the likely variation to which it will be suggested and push the
system to its limits.

The testing process focuses on logical intervals of the software ensuring that all the
statements have been tested and on function intervals (i.e….,) conducting the tests to uncover
errors and ensure that defined inputs will produce actual results that agree with the required
results. Testing has to be done using the two common steps Unit testing and Integration testing. In
the project system testing is made as follows:

6.3. TYPE OF TESTING


● Smoke Testing.
● Sanitary Testing.
● Regression Testing.
● Re-Testing.
● Static Testing.
● Dynamic Testing.
● Alpha-Testing.
● Beta-Testing.
● Monkey Testing.
● Compatibility Testing.
● Installation Testing.
● Test Planning.
● Test Development.
● Test Execution.

24
6.4. TEST PLANNING
● Test plan is defined as a strategic document which describes the procedure how to perform
various testing on the total application in the most efficient way.
● Objectives of testing.
● Areas that needed to be tested.
● Areas that should not be tested.
● Scheduling Resources Planning.
● Areas to be automated, various testing tools used.

6.5. TEST DEVELOPMENT

● Test case Development (check list)


● Test procedure preparation. (Description of test cases)

6.6. TEST EXECUTION

● Implementation of test cases. Observing the result.

6.7.RESULT EXECUTION
● Expected value: is nothing but expected behaviour of application.
● Actual value: is nothing but actual behaviour of the application.

6.8. BUG TRACING


● Collect all the failed cases, prepare documents.

25
6.9. REPORTING
Prepare document (status of the application)
6.10 TYPES OF TESTING
● Smoke testing: is the process of initial testing in which tester looks for the availability of
all the functionality of the application in order to perform detailed testing on them. (Main
check is for available forms)
● Sanity testing: is a type of testing that is conducted on an application initially to check for
the proper behaviour of an application that is to check all the functionality are available
before the detailed testing is conducted by on them.
● Regression testing: is one of the best and important testing. Regression testing is the
process in which the functionality, which is already tested before, is once again tested
whenever some new changes is added in order to check whether the existing functionality
remains same.
● Re-testing: is the process in which the testing is performed on some functionality which is
already tested before to make sure that the defects are reproducible and to rule out the
environments issues if at all any defects are there.
● Static testing: is the testing, which is performed on an application when it is not been
executed. Ex: GUI, Document testing.
● Dynamic testing: is the testing which is performed on an application when it is being
executed. Ex:Functional testing.
● Alpha testing: is a type of user acceptance testing, which is conducted on an application
when it is just before released to the customer.
● Beta testing: is a type of UAT that is conducted on an application when it is released to
the customer, when deployed into the real time environment and being accessed by the
real time users.

26
● Monkey testing: is the process in which the abnormal operations,beyond capacity
operations are done on the application to check the stability of it in spite of the user
abnormal behaviour.
● Compatibility testing: it is the testing process in which usually the products are tested on
the environments with different combination of databases (application servers,
browsers….etc)
● Installation testing: is the process of testing in which the tester try to install or try to
deploy the module into the corresponding environment by following the guidelines
produced in the deployment document and check whether the installation is successful or
not.
● Adhoc testing: Adhoc testing is the process of testing in which unlike the formal testing
where in test case document is used, with-out that test case document testing can be done
of an application, to cover that testing of the future which are not covered in that test case
document. Also it is intended to perform GUI testing which may involve the cosmetic
issues.
● Functional testing: There are two basic approaches of functional testing:

a. Black box or functional testing.

b. White box or structural testing.

(a)Black box testing


This method is used when knowledge of the specified functional that a product has
been design to perform is known. The concept of black box is used to represent a system hose
inside workings are not available to inspection. In a black box the test item is eaten as “Black”,
since its logic is unknown is what goes in and what comes out, or the input and output.
In the Black Box Testing, we try various inputs and examine the resulting outputs.
The black box testing can also be used for scenarios based test. In this test we verify whether it is
taking valid input and producing resultants out to user. It is imaginary box testing that hides
internal workings. In our project valid input is image resultant output well structured image
should be received.

27
(b)White box testing
White box testing is concern with testing implementation of the program. The
intent of structural testing is not to exercise all the inputs or outputs but to exercise the different
programming and data structure used in the program. Thus structure testing aims to achieve test
cases that will force the desire coverage of different structures. Two types of path testing are:

1. Statement testing.

2. Branch testing.

6.11. STATEMENT TESTING


The main idea of statements testing coverage is to test every statement in the object
method by executing it least once. However, realistically, it is impossible to test program on every
single input, so you never can be sure that a program will not fail on one inputs.

6.12. BRANCH TESTING


The main idea behind branch testing coverage is to perform enough tests to ensure
that every branch alternative has been executed at least once under some test. As in statement
testing coverage, it is unfeasible to fully test any program of considerable size.

28
6.13. TEST CASE REPORT

S.NO Module Input Actual Expected Result


User name & password Output Output
Exi
stin
g
corr
esp
ond
Existin ong
g pas
userna swo
1 me rd 9 Pass Pass Pass
Wr
2 Wrong ong Fail Fail Pass
Wr
3 Wrong ong Pass Pass Fail

4 4 8 Fail Pass Fail

5 Login 2 10 Fail Fail Pass

6 2 10 Pass Fail Pass

7 4 9 Pass Pass Fail

8 2 9 Fail Fail Pass

S.NO Module Input Actual Expected Result


Username & password Output Output

1 Pam Pa Invalid Invalid Pass


xx@gm Huih8
2 ail.com uihui Valid Valid Pass
signup xx@gm Valid Valid Pass
3 ail.com

4 23 8.91 Valid Valid Fail


29
CHAPTER 7

CONCLUSION

30
7.1. SUMMARY

All modules mentioned above was implemented successfully and tested with sample

inputs and outputs. In professional world all the communications are being done by

emails. Now a day’s mailing server is playing a very important role in our social

and economical life.. The project is made following best practices of android, material design,

cloud etc.

7.2. FUTURE ENHANCEMENTS

In future, there will be a more improvements made with this project. We will bring more
notes for more departments and we will be add more coding for C# and asp.net in our program
hub. We will also let you notified if there events that are conducted in our departments as well as
other colleges.

31
CHAPTER 8

APPENDIX

8.1. SCREENSHOTS

32
8.1.1. Home Screen

Fig 8.1.1.0 Fig 8.1.1.1

8.1.2 Notes

33
Fig 8.1.2.0 Fig 8.1.2.1

34
8.1.3

Fig 8.1.3.0 Fig 8.1.3.1

8.1.4

35
Fig 8.1.4.0 Fig 8.1.4.1

8.1.5

36
Fig 8.1.5.0 Fig 8.1.5.1

8.1.6

37
Fig 8.1.6.0 Fig 8.1.6.1

38
Fig 8.1.7.0 Fig 8.1.7.1

8.2 Coding

Finecalc.xml

39
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="email_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Voice Mail System</title>
<link href="StyleSheet.css" rel="Stylesheet" />
<style type="text/css">
.style2
{
font-size: medium;
font-weight: bold;
color: #003300;
text-align: right;
font-family: Calibri;
width: 138px;
}
.style3
{
width: 138px;
}
.style4
{
font-size: medium;
font-weight: bold;
color: #FFFFFF;
text-align: right;
font-family: Calibri;
width: 138px;
height: 31px;
}
.style5
{
height: 31px;
}
.style6
{
color: #FFFFFF;
}
.style7
{
font-size: medium;
font-weight: bold;
color: #FFFFFF;
text-align: right;
font-family: Calibri;
width: 138px;
}
</style>
</head>
<body>
<p>
&nbsp;</p>
<form id="form1" runat="server">
<div id="head">

<span lang="en-us"
style="font-size: 55pt; color: #003300; font-family:
Amaranth">&nbsp;</span><span lang="en-us"
style="font-size: 55pt; font-family: Amaranth"
class="style6">&nbsp;&nbsp;&nbsp; Voice Mail System</span></div>
<div id="login">
<table class="tbll">
<tr>
<td class="style2">
&nbsp;</td>
<td align="left">
&nbsp;</td>
</tr>
<tr>
<td class="style4">
UserName :</td>
<td align="left" class="style5">
<asp:TextBox ID="txtuname" runat="server" BorderColor="#003300"
placeholder="Enter Name"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
ontextchanged="txtuname_TextChanged"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server"
ControlToValidate="txtuname" ErrorMessage="Enter Email Id"
Font-Bold="True" style="font-size:
small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style7">
Password :</td>
<td align="left">
<asp:TextBox ID="txtupass" runat="server" BorderColor="#003300"
placeholder="Enter Password"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ControlToValidate="txtupass" ErrorMessage="Enter Password"
Font-Bold="True" style="font-size:
small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td align="left">
<asp:Button ID="btnlogin" runat="server" BorderColor="#006600"
BorderStyle="Solid" BorderWidth="1px" Font-Bold="True"
Height="30px" Text="Sign In" Width="65px"
onclick="btnlogin_Click"
CssClass="btnn" />
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td align="left">
<asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True"
Font-Names="Calibri" ForeColor="#003300"
PostBackUrl="~/Signup.aspx"
CausesValidation="False">Create
an Account ?</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td style="text-align: left">
<asp:Label ID="lblerror" runat="server" Font-Bold="False"
ForeColor="Red"></asp:Label>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

Default.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class email_Default : System.Web.UI.Page


{
DS_USER.USERMST_SELECTDataTable UDT = new DS_USER.USERMST_SELECTDataTable();
DS_USERTableAdapters.USERMST_SELECTTableAdapter UAdapter = new
DS_USERTableAdapters.USERMST_SELECTTableAdapter();

protected void Page_Load(object sender, EventArgs e)


{

}
protected void btnlogin_Click(object sender, EventArgs e)
{
lblerror.Text = "";

UDT = UAdapter.SelectForLOGIN(txtuname.Text, txtupass.Text);

if (UDT.Rows.Count > 0)
{
Session["uid"] = UDT.Rows[0]["uid"].ToString();
Session["email"] = UDT.Rows[0]["email"].ToString();
Session["password"] = UDT.Rows[0]["password"].ToString();
Session["name"] = UDT.Rows[0]["fname"].ToString();
Session["img"] = UDT.Rows[0]["image"].ToString();
Response.Redirect("Inbox.aspx");

}
else
{
lblerror.Text = "Invalid email or password";

}
}
protected void txtuname_TextChanged(object sender, EventArgs e)
{

}
}
Master

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Home.master.cs" Inherits="Home"


%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title> <link href="Style.css" rel="Stylesheet" />
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 90%;
height: 319px;
}
.style4
{
width: 322px;
}
.style5
{
width: 229px;
color: #0066FF;
font-size: 30pt;
text-align: left;
}
.style7
{
}
.style8
{
width: 58px;
}
.style9
{
width: 96px;
}
.style13
{
width: 100px;
}
.style14
{
font-family: Calibri;
font-weight: bold;
}
.style17
{
height: 11px;
}
.style19
{
height: 12px;
}
.style20
{
height: 12px;
}
.style21
{
font-size: large;
font-family: Calibri;
color: #008080;
text-align: right;
}
.style22
{
color: #660066;
}
.style24
{
font-size: medium;
font-family: Calibri;
}
.style26
{
font-size: 35pt;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="head" style="border: thin solid #008080">

<table style="width: 97%">


<tr>
<td class="style22" rowspan="2">
<asp:Image ID="Image2" runat="server" Height="60px"
ImageUrl="~/img/mm.png"
Width="60px" />
</td>
<td class="style5" rowspan="2">
<span class="style26">M</span>ail <span
class="style26">S</span>ystem</td>
<td class="style21" colspan="2">
Search Mail :</td>
<td class="style4">
<asp:TextBox ID="txtserch1" runat="server" Height="25px"
Width="302px"
CssClass="txt"></asp:TextBox>
</td>
<td class="style8">
<asp:Button ID="btnfind" runat="server" CssClass="btnn" Height="35px"
Text="Find Mail" Width="117px" onclick="btnfind_Click" />
</td>
<td class="style24">
<asp:LinkButton ID="LinkButton2" runat="server" Font-Bold="True"
Font-Names="Calibri" Font-Size="Medium" Font-Underline="False"
ForeColor="#CC0066" PostBackUrl="~/changpassword.aspx">Chnage
Password</asp:LinkButton>
</td>
</tr>
<tr>
<td class="style7">
&nbsp;</td>
<td class="style9">
&nbsp;</td>
<td class="style4">
&nbsp;</td>
<td class="style8">
&nbsp;</td>
<td class="style24">
<asp:LinkButton ID="LinkButton3" runat="server" Font-Bold="True"
Font-Names="Calibri" Font-Size="Medium" Font-Underline="False"
ForeColor="#CC0066"
PostBackUrl="~/Default.aspx">LogOut</asp:LinkButton>
</td>
</tr>
</table>

</div>
<div id="body">

<table class="style1">
<tr>
<td valign="top">
&nbsp;</td>
<td valign="top">
&nbsp;</td>
<td valign="top">
&nbsp;</td>
</tr>
<tr>
<td valign="top">
<div id="left">
<table class="style1" style="border: thin solid #008080; width:
100%;">
<tr>
<td style="border-bottom: thin solid #008080; text-align:
center;"
bgcolor="#D7FFD7">
<asp:Label ID="lblwelcome" runat="server"
BorderColor="#660066"

style="font-size: medium; font-family: Calibri;


font-weight: 700; color: #FF3300;"></asp:Label>
</td>
</tr>
<tr>
<td style="text-align: center;" class="style17">
</td>
</tr>
<tr>
<td style="text-align: center;">
<asp:Image ID="Image1" runat="server" Height="129px"
ImageUrl="~/img/boy.jpeg"
Width="108px" />
</td>
</tr>
<tr>
<td>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:LinkButton ID="linkuploadimage" runat="server"
PostBackUrl="~/Account.aspx" style="color:
#006666">Change Image</asp:LinkButton>
&nbsp;</td>
</tr>
<tr>
<td style="border-top: thin solid #008080; text-align:
center;" class="mm">
<a href="Compose.aspx" class="leftmnu">Compose</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="SMS.aspx" class="leftmnu">Send SMS</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="Inbox.aspx" class="leftmnu">Inbox</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="Sent.aspx" class="leftmnu"> Sent</a></td>
</tr>
<tr>
<td style="text-align: center" class="mm">
<a href="Trash.aspx" class="leftmnu"> Trash</a></td>
</tr>
<tr>
<td style="border-bottom-style: solid; border-bottom-
width: thin; border-bottom-color: #008080"
class="style20">
</td>
</tr>
<tr>
<td style="text-align: center">
<a href="Contact.aspx" class="leftmnu"> My
Contact</a></td>
</tr>
<tr>
<td style="text-align: center">
<a href="calender.aspx" class="leftmnu">
Calender</a></td>
</tr>
<tr>
<td style="text-align: center">
<a href="Chat.aspx" class="leftmnu"> Online
Chat</a></td>
</tr>
<tr>
<td>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;
<a href="Account.aspx" class="leftmnu">Account</a></td>
</tr>
<tr>
<td class="style19"
style="border-bottom-style: solid; border-bottom-
width: thin; border-bottom-color: #008080">
</td>
</tr>
<tr>
<td>
<asp:Calendar ID="Calendar1" runat="server"
BackColor="White"
BorderColor="#999999" CellPadding="4"
DayNameFormat="Shortest"
Font-Names="Verdana" Font-Size="8pt"
ForeColor="Black" Height="182px"
Width="185px">
<SelectedDayStyle BackColor="#666666" Font-
Bold="True" ForeColor="White" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<TodayDayStyle BackColor="#CCCCCC"
ForeColor="Black" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-
Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999"
BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</td>
</tr>
</table>
</div></td>
<td valign="top">
<div id="mid">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div></td>
<td valign="top">
<div id="right">
<table class="style13" style="border: thin solid #008080">
<tr>
<td bgcolor="#D7FFD7" class="style14"
style="border-bottom: thin solid #008080; text-align:
center;">
Advertisement</td>
</tr>
<tr>
<td>
<asp:AdRotator ID="AdRotator1" runat="server"
AdvertisementFile="~/XMLFile.xml"
Height="601px" Width="157px" />
</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>

</div>
</form>
</body>
</html>

Cs file

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

public partial class Home : System.Web.UI.MasterPage

{
DS_Mail.MAILMST_SELECTDataTable MDT = new DS_Mail.MAILMST_SELECTDataTable();
DS_MailTableAdapters.MAILMST_SELECTTableAdapter MAdapter = new
DS_MailTableAdapters.MAILMST_SELECTTableAdapter();

protected void Page_Load(object sender, EventArgs e)


{
lblwelcome.Text = "Hiii "+Session["name"].ToString();
Image1.ImageUrl = Session["img"].ToString();

}
protected void btnfind_Click(object sender, EventArgs e)
{
Session["serch"] = txtserch1.Text + "%";
Response.Redirect("Inbox.aspx");
}

Signup

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Signup.aspx.cs"


Inherits="email_signup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Voice Mail System</title>
<link href="StyleSheet.css" rel="Stylesheet" />
<style type="text/css">
.style2
{
font-size: medium;
font-weight: bold;
color: #003300;
text-align: right;
font-family: Calibri;
width: 138px;
}
.style3
{
width: 138px;
}
</style>
</head>
<body>
<p>
+</p>
<form id="form1" runat="server">
<div id="head">

<span lang="en-us"
style="font-size: 55pt; color: #003300; font-family:
Amaranth">&nbsp;&nbsp;&nbsp; Voice Mail System</span></div>
<div id="login">
<table class="tbl">
<tr>
<td class="style2">
&nbsp;</td>
<td align="left">
&nbsp;</td>
</tr>
<tr>
<td class="style2">
Name :</td>
<td align="left">
<asp:TextBox ID="txtfname" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqfieldvalidatorname" runat="server"
ControlToValidate="txtfname" ErrorMessage="Enter Name"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="style2">
Surname :</td>
<td align="left">
<asp:TextBox ID="txtsname" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server"
ControlToValidate="txtsname" ErrorMessage="Enater Surname"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="lbl">
Mobile :</td>
<td align="left">
<asp:TextBox ID="txtmo" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RangeValidator ID="RangeValidator1" runat="server"
ControlToValidate="txtmo" ErrorMessage="Enter Mobile No"
MaximumValue="9999999999"
MinimumValue="1000000000" style="font-size:
small"></asp:RangeValidator>
<asp:RangeValidator ID="RangeValidator3" runat="server"
ControlToValidate="txtmo" ErrorMessage="Invalid "
MaximumValue="9999999999"
MinimumValue="1000000000" Type="Double"></asp:RangeValidator>
</td>
</tr>
<tr>
<td class="lbl">
Address :</td>
<td align="left">
<asp:TextBox ID="txtadd" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server"
ControlToValidate="txtadd" ErrorMessage="Enter Your Add"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="lbl">
City :</td>
<td align="left">
<asp:TextBox ID="txtcity" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server"
ControlToValidate="txtcity" ErrorMessage="Enter Your City"
style="font-size: small"></asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td class="lbl">
Pinocode :</td>
<td align="left">
<asp:TextBox ID="txtpin" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server"
ControlToValidate="txtpin" ErrorMessage="Enter PinCode"
style="font-size: small"></asp:RequiredFieldValidator>
<asp:RangeValidator ID="RangeValidator2" runat="server"
ControlToValidate="txtpin" ErrorMessage="Invalid Pin"
MaximumValue="999999"
MinimumValue="100000" Type="Double"></asp:RangeValidator>
</td>
</tr>
<tr>
<td class="lbl">
BirthDate :</td>
<td align="left">
<asp:DropDownList ID="DrpDD" runat="server">
<asp:ListItem>DD</asp:ListItem>
<asp:ListItem>01</asp:ListItem>
<asp:ListItem>02</asp:ListItem>
<asp:ListItem>03</asp:ListItem>
<asp:ListItem>04</asp:ListItem>
<asp:ListItem>05</asp:ListItem>
<asp:ListItem>06</asp:ListItem>
<asp:ListItem>07</asp:ListItem>
<asp:ListItem>08</asp:ListItem>
<asp:ListItem>09</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
<asp:ListItem>24</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
<asp:ListItem>26</asp:ListItem>
<asp:ListItem>27</asp:ListItem>
<asp:ListItem>28</asp:ListItem>
<asp:ListItem>29</asp:ListItem>
<asp:ListItem>30</asp:ListItem>
<asp:ListItem>31</asp:ListItem>

</asp:DropDownList>
<asp:DropDownList ID="Drpmm" runat="server">
<asp:ListItem>MM</asp:ListItem>
<asp:ListItem>jan</asp:ListItem>
<asp:ListItem>feb</asp:ListItem>
<asp:ListItem>mar</asp:ListItem>
<asp:ListItem>apr</asp:ListItem>
<asp:ListItem>may</asp:ListItem>
<asp:ListItem>june</asp:ListItem>
<asp:ListItem>july</asp:ListItem>
<asp:ListItem>aug</asp:ListItem>
<asp:ListItem>sep</asp:ListItem>
<asp:ListItem>oct</asp:ListItem>
<asp:ListItem>nov</asp:ListItem>
<asp:ListItem>dec</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="Drpyyy" runat="server">
<asp:ListItem>YYY</asp:ListItem>
<asp:ListItem>1970</asp:ListItem>
<asp:ListItem>1971</asp:ListItem>
<asp:ListItem>1972</asp:ListItem>
<asp:ListItem>1973</asp:ListItem>
<asp:ListItem>1974</asp:ListItem>
<asp:ListItem>1975</asp:ListItem>
<asp:ListItem>1976</asp:ListItem>
<asp:ListItem>1977</asp:ListItem>
<asp:ListItem>1978</asp:ListItem>
<asp:ListItem>1979</asp:ListItem>
<asp:ListItem>1980</asp:ListItem>
<asp:ListItem>1981</asp:ListItem>
<asp:ListItem>1982</asp:ListItem>
<asp:ListItem>1983</asp:ListItem>
<asp:ListItem>1984</asp:ListItem>
<asp:ListItem>1985</asp:ListItem>
<asp:ListItem>1986</asp:ListItem>
<asp:ListItem>1987</asp:ListItem>
<asp:ListItem>1988</asp:ListItem>
<asp:ListItem>1989</asp:ListItem>
<asp:ListItem>1990</asp:ListItem>
<asp:ListItem>1991</asp:ListItem>
<asp:ListItem>1992</asp:ListItem>
<asp:ListItem>1993</asp:ListItem>
<asp:ListItem>1994</asp:ListItem>
<asp:ListItem>1995</asp:ListItem>
<asp:ListItem>1996</asp:ListItem>
<asp:ListItem>1997</asp:ListItem>
<asp:ListItem>1998</asp:ListItem>
<asp:ListItem>1999</asp:ListItem>
<asp:ListItem>2000</asp:ListItem>
<asp:ListItem>2001</asp:ListItem>
<asp:ListItem>2002</asp:ListItem>
<asp:ListItem>2003</asp:ListItem>
<asp:ListItem>2004</asp:ListItem>
<asp:ListItem>2005</asp:ListItem>
<asp:ListItem>2006</asp:ListItem>
<asp:ListItem>2007</asp:ListItem>
<asp:ListItem>2008</asp:ListItem>
<asp:ListItem>2009</asp:ListItem>
<asp:ListItem>2010</asp:ListItem>
<asp:ListItem>2011</asp:ListItem>
<asp:ListItem>2012</asp:ListItem>
<asp:ListItem>2013</asp:ListItem>
<asp:ListItem>2014</asp:ListItem>

</asp:DropDownList>
</td>
</tr>
<tr>
<td class="lbl">
&nbsp;</td>
<td align="left">
<asp:RadioButton ID="RadioButton1" runat="server" Checked="True"
GroupName="A"
Text="MALE" />
&nbsp;<asp:RadioButton ID="RadioButton2" runat="server" GroupName="A" Text="FEMALE" />
</td>
</tr>
<tr>
<td class="lbl">
Email Id :</td>
<td align="left">
<asp:TextBox ID="txtuname" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="133px"
CssClass="txtbox"></asp:TextBox>
<asp:TextBox ID="txtuname0" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="100px"
CssClass="txtbox" ReadOnly="True">@yahoo.com</asp:TextBox>
</td>
</tr>
<tr>
<td class="lbl">
Password :</td>
<td align="left">
<asp:TextBox ID="txtpass" runat="server" BorderColor="#003300"
BorderStyle="Solid" BorderWidth="1px" Height="25px" Width="157px"
CssClass="txtbox" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td align="left">
<asp:Label ID="lblerror" runat="server" ForeColor="Red"></asp:Label>
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td align="left">
<asp:Button ID="Button1" runat="server" BorderColor="#006600"
BorderStyle="Solid" BorderWidth="1px" Font-Bold="True"
ForeColor="#003300"
Height="30px" Text="Register Now" Width="102px"
onclick="Button1_Click"
CssClass="btnn" />
</td>
</tr>
<tr>
<td class="style3">
&nbsp;</td>
<td align="left">
<asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True"
Font-Names="Calibri" ForeColor="#003300"
PostBackUrl="~/Default.aspx" CausesValidation="False">Allready
have an Account ?</asp:LinkButton>
</td>
</tr>
</table>
</div>
</form>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
<p>
&nbsp;</p>
</body>
</html>

Cs file

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

public partial class email_signup : System.Web.UI.Page


{
DS_USER.USERMST_SELECTDataTable UDT = new DS_USER.USERMST_SELECTDataTable();
DS_USERTableAdapters.USERMST_SELECTTableAdapter UAdapter = new
DS_USERTableAdapters.USERMST_SELECTTableAdapter();

protected void Page_Load(object sender, EventArgs e)


{

}
protected void Button1_Click(object sender, EventArgs e)
{
lblerror.Text = "";
UDT = UAdapter.SelectForEmailCheck(txtuname.Text+"@yahoo.com");

if (DrpDD.SelectedIndex == 0)
{

lblerror.Text = "Slect Date first";


}
else if (Drpmm.SelectedIndex == 0)
{

lblerror.Text = "Select Month first";


}
else if (Drpyyy.SelectedIndex == 0)
{
lblerror.Text = "select Year first";
}
else if(txtuname.Text=="")
{
lblerror.Text = "Enter UserName ";
}
else if (txtpass.Text == "")
{

lblerror.Text = "Enter Password";


}
else
{

if (UDT.Rows.Count == 1)
{
lblerror.Text = "Email already exist !!";

}
else
{
string img = "";
if (RadioButton1.Checked == true)
{
img = "~/img/boy.jpeg";

}
else
{
img = "~/img/girl.jpeg";
}

if (txtpass.Text.Length > 8)
{
if (UDT.Rows.Count > 0)
{
lblerror.Text = "UserName Already Exist";

}
else
{
int inst = UAdapter.Insert(txtfname.Text, txtsname.Text,
Convert.ToDateTime(DrpDD.SelectedItem.Text + " " + Drpmm.SelectedItem.Text + " " +
Drpyyy.SelectedItem.Text), txtadd.Text, txtcity.Text, txtpin.Text, txtmo.Text,
txtuname.Text + txtuname0.Text, txtpass.Text, img);
Response.Redirect("Default.aspx");
}
}
else
{
lblerror.Text = "Password more then 8 char";
}
}
}
}
}

Compose

<%@ Page Language="C#" MasterPageFile="~/Home.master" AutoEventWireup="true"


CodeFile="Compose.aspx.cs" Inherits="Compose" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
.style13
{
width: 679px;
}
.style14
{
width: 649px;
}
.style16
{
font-size: medium;
font-weight: bold;
color: #003300;
text-align: right;
font-family: Calibri;
width: 83px;
}
.style17
{
width: 83px;
}
.style18
{
width: 650px;
}
</style>
</asp:Content>

<asp:Content ID="Content2" runat="server"


contentplaceholderid="ContentPlaceHolder1">

<table class="style11" style="border: thin solid #008080">


<tr>
<td style="border-bottom-style: solid; border-bottom-width: thin; border-
bottom-color: #008080; font-size: xx-large; font-weight: bold; font-family: calibri;
color: #008080; text-align: center;"
bgcolor="#D7FFD7">
Compose Mail</td>
</tr>
<tr>
<td>
<table class="style13">
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="lbll">
Send Email To :</td>
<td>
<asp:RadioButton ID="RadioButton1" runat="server"
AutoPostBack="True"
Checked="True" CssClass="lbl" GroupName="a"
oncheckedchanged="RadioButton1_CheckedChanged"
Text="Single Mail"
onload="RadioButton1_CheckedChanged" />
&nbsp;<asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True"
CssClass="lbl" GroupName="a"
oncheckedchanged="RadioButton2_CheckedChanged"
Text="Group Mail" />
&nbsp;<asp:RadioButton ID="RadioButton3" runat="server"
AutoPostBack="True"
CssClass="lbl" GroupName="a"
oncheckedchanged="RadioButton3_CheckedChanged"
Text="Web Mail" />
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="text-align: left">
<asp:MultiView ID="MultiView1" runat="server">
<asp:View ID="View1" runat="server">
<table style="border: thin solid #0000FF"
width="100%">
<tr>
<td class="tl" bgcolor="#8CD98C">
Send Mail to Single Person :
&nbsp;</td>
</tr>
<tr>
<td>
<table class="style14">
<tr>
<td>
&nbsp;</td>
<td class="style16">
Select :</td>
<td>
<asp:DropDownList
ID="DropDownList1" runat="server" CssClass="txt"
Height="26px"
onselectedindexchanged="DropDownList1_SelectedIndexChanged"
Width="200px">
</asp:DropDownList>
<asp:Button ID="Button2"
runat="server" CssClass="btnn" Height="26px"

onclick="Button2_Click" Text="Select" Width="62px" />


</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
To :</td>
<td>
<asp:Label ID="Label1"
runat="server" CssClass="lbll" Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
Title :</td>
<td>
<asp:TextBox
ID="txtsubject" runat="server" Height="30px" Width="519px"

ontextchanged="txtsubject_TextChanged" CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
Message :</td>
<td>
<asp:TextBox
ID="txtmessage" runat="server" Height="149px" TextMode="MultiLine"
Width="515px"
CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
<asp:Button ID="Button3"
runat="server" CssClass="btnn" Text="SEND"
Width="90px"
onclick="Button3_Click" Height="30px" />
&nbsp;<asp:LinkButton
ID="LinkButton1" runat="server"

onclick="LinkButton1_Click" ForeColor="#003300">Attachment</asp:LinkButton>
&nbsp;<asp:Label
ID="att1" runat="server"></asp:Label>
<asp:Label ID="att2"
runat="server"></asp:Label>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
<asp:FileUpload
ID="FileUpload1" runat="server" Visible="False" />
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
<asp:FileUpload
ID="FileUpload2" runat="server" Visible="False" />
&nbsp;<asp:Button
ID="btnuploadsingle" runat="server" CssClass="btnn" Text="Upload"
Visible="False"
onclick="btnuploadsingle_Click" Height="28px"
Width="80px" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View2" runat="server">
<table style="border: thin solid #0000FF"
width="100%">
<tr>
<td class="tl" bgcolor="#8CD98C">
Send Mail to Multiple Person :
&nbsp;</td>
</tr>
<tr>
<td>
<table class="style14">
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
To :</td>
<td>
<asp:CheckBoxList
ID="CheckBoxList1" runat="server" Height="21px"

onselectedindexchanged="CheckBoxList1_SelectedIndexChanged"
RepeatColumns="3">
</asp:CheckBoxList>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
Title :</td>
<td>
<asp:TextBox
ID="txtsubjectgroup" runat="server" Height="30px" Width="519px"

CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
Message :</td>
<td>
<asp:TextBox
ID="txtmessagegroup" runat="server" Height="149px"
TextMode="MultiLine"
Width="515px"

ontextchanged="txt_TextChanged" CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
<asp:Button
ID="sendgroup" runat="server" CssClass="btnn" Text="SEND"
Width="90px"
onclick="Button5_Click" Height="30px" />
<asp:LinkButton
ID="LinkButton2" runat="server" onclick="LinkButton2_Click"

ForeColor="#003300">Attachment</asp:LinkButton>
<asp:Label ID="att3"
runat="server"></asp:Label>
<asp:Label ID="att4"
runat="server"></asp:Label>
<br />
<asp:FileUpload
ID="FileUpload3" runat="server" Visible="False" />
<br />
<asp:FileUpload
ID="FileUpload4" runat="server" Visible="False" />
<asp:Button
ID="btnuploadsinglegroup" runat="server" CssClass="btnn"

onclick="btnuploadsinglegroup_Click" Text="Upload" Visible="False"


Height="28px"
Width="80px" />
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View3" runat="server">
<table align="center" class="style18">
<tr>
<td>
&nbsp;</td>
</tr>
<tr>
<td align="center" style="font-weight:
700; color: #FF0066; font-size: large">
Message Send successfully to
<asp:Label ID="lblsnd"
runat="server"></asp:Label>
<br />
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View4" runat="server">
<table style="border: thin solid #0000FF"
width="100%">
<tr>
<td class="tl" bgcolor="#8CD98C">
Send email on internet to any web
mail.</td>
</tr>
<tr>
<td>
<table class="style14">
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
To :</td>
<td>
<asp:TextBox
ID="txtemaill" runat="server" Width="248px" CssClass="txt"

Height="30px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
Title :</td>
<td>
<asp:TextBox
ID="txtsubject0" runat="server" BackColor="#F9FFFE" Height="30px"

ontextchanged="txtsubject_TextChanged" Width="519px" CssClass="txt"></asp:TextBox>


</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style16">
Message :</td>
<td>
<asp:TextBox
ID="txtmessage0" runat="server" BackColor="#F9FFFE" Height="149px" TextMode="MultiLine"
Width="515px"
CssClass="txt"></asp:TextBox>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
<asp:Button
ID="btnsend_Web" runat="server" CssClass="btnn"

onclick="btnsend_Web_Click" Text="SEND" Width="90px" Height="30px" />


&nbsp;&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td class="style17">
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:View>
</asp:MultiView>
</td>
</tr>
<tr>
<td>
&nbsp;</td>
<td>
&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</p>

</asp:Content>

Cs file

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Net.Mail;

public partial class Compose : System.Web.UI.Page


{
DS_Contact.Contactmst_selectDataTable CDT = new
DS_Contact.Contactmst_selectDataTable();
DS_ContactTableAdapters.Contactmst_selectTableAdapter CAdapter = new
DS_ContactTableAdapters.Contactmst_selectTableAdapter();

DS_Mail.MAILMST_SELECTDataTable MDT = new DS_Mail.MAILMST_SELECTDataTable();


DS_MailTableAdapters.MAILMST_SELECTTableAdapter MAdapter = new
DS_MailTableAdapters.MAILMST_SELECTTableAdapter();

protected void Page_Load(object sender, EventArgs e)


{

// MultiView1.ActiveViewIndex = -1;

}
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{

MultiView1.ActiveViewIndex = 0;
if (Page.IsPostBack == false)
{
CDT = CAdapter.selectbyemail(Session["email"].ToString());
DropDownList1.DataSource = CDT;
DropDownList1.DataTextField = "Toemail";
DropDownList1.DataValueField = "cid";
DropDownList1.DataBind();
}
}
protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
{

MultiView1.ActiveViewIndex = 1;

CDT = CAdapter.selectbyemail(Session["email"].ToString());
CheckBoxList1.DataSource = CDT;
CheckBoxList1.DataTextField = "Toemail";
CheckBoxList1.DataValueField = "cid";
CheckBoxList1.DataBind();

}
protected void LinkButton1_Click(object sender, EventArgs e)
{
btnuploadsingle.Visible = true;
FileUpload1.Visible = true;
FileUpload2.Visible = true;
}
protected void Button2_Click(object sender, EventArgs e)
{
Label1.Text = DropDownList1.SelectedItem.Text;

}
protected void btnuploadsingle_Click(object sender, EventArgs e)
{
att1.Text = "";
att2.Text = "";
if (FileUpload1.HasFile != false)
{

FileUpload1.SaveAs(Server.MapPath("~/att/" +Session["uid"].ToString() +"_"+


FileUpload1.FileName.ToString()));
att1.Text = FileUpload1.FileName.ToString();
}
if (FileUpload2.HasFile != false)
{
FileUpload2.SaveAs(Server.MapPath("~/att/" + Session["uid"].ToString() + "_"
+ FileUpload2.FileName.ToString()));
att2.Text =FileUpload2.FileName.ToString();
}
FileUpload1.Visible = false;
FileUpload2.Visible = false;
btnuploadsingle.Visible = false;
}
protected void Button3_Click(object sender, EventArgs e)
{

if(att1.Text!="" && att2.Text!="")


{
int
inst=MAdapter.Insert(Session["email"].ToString(),Label1.Text,txtsubject.Text,txtmessage.T
ext,"~/att/" +Session["uid"].ToString() +"_"+ att1.Text,"~/att/"
+Session["uid"].ToString() +"_"+ att2.Text,0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = Label1.Text;
}
else if (att1.Text == "" && att2.Text != "")
{
int inst = MAdapter.Insert(Session["email"].ToString(), Label1.Text,
txtsubject.Text, txtmessage.Text, "", "~/att/" + Session["uid"].ToString() + "_" +
att2.Text, 0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = Label1.Text;
}
else if (att1.Text != "" && att2.Text == "")
{
int inst = MAdapter.Insert(Session["email"].ToString(), Label1.Text,
txtsubject.Text, txtmessage.Text, "~/att/" + Session["uid"].ToString() + "_" + att1.Text,
"", 0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = Label1.Text;
}
else
{
int inst = MAdapter.Insert(Session["email"].ToString(), Label1.Text,
txtsubject.Text, txtmessage.Text, "", "", 0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = Label1.Text;

}
Label1.Text = "";
att1.Text = "";
att2.Text = "";
txtmessage.Text = "";
txtsubject.Text= "";

}
protected void txt_TextChanged(object sender, EventArgs e)
{

}
protected void Button5_Click(object sender, EventArgs e)
{
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{

if (CheckBoxList1.Items[i].Selected == true)
{

if (att3.Text != "" && att4.Text != "")


{
int inst = MAdapter.Insert(Session["email"].ToString(),
CheckBoxList1.Items[i].Text, txtsubjectgroup.Text, txtmessagegroup.Text, "~/att/" +
Session["uid"].ToString() + "_" + att3.Text, "~/att/" + Session["uid"].ToString() + "_" +
att4.Text, 0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = "ALL";
}
else if (att3.Text == "" && att4.Text != "")
{
int inst = MAdapter.Insert(Session["email"].ToString(),
CheckBoxList1.Items[i].Text, txtsubjectgroup.Text, txtmessagegroup.Text, "", "~/att/" +
Session["uid"].ToString() + "_" + att4.Text, 0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = "ALL";
}
else if (att3.Text != "" && att4.Text == "")
{
int inst = MAdapter.Insert(Session["email"].ToString(),
CheckBoxList1.Items[i].Text, txtsubjectgroup.Text, txtmessagegroup.Text, "~/att/" +
Session["uid"].ToString() + "_" + att3.Text, "", 0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = "ALL";
}
else
{
int inst = MAdapter.Insert(Session["email"].ToString(),
CheckBoxList1.Items[i].Text, txtsubjectgroup.Text, txtmessagegroup.Text, "", "", 0);
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = "ALL";
}
}

}
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
Label1.Text = DropDownList1.SelectedItem.Text;
}
protected void txtsubject_TextChanged(object sender, EventArgs e)
{

}
protected void btnuploadsinglegroup_Click(object sender, EventArgs e)
{
att3.Text = "";
att4.Text = "";
if (FileUpload3.HasFile != false)
{

FileUpload3.SaveAs(Server.MapPath("~/att/" +Session["uid"].ToString() +"_"+


FileUpload3.FileName.ToString()));
att3.Text = FileUpload3.FileName.ToString();
}
if (FileUpload4.HasFile != false)
{
FileUpload4.SaveAs(Server.MapPath("~/att/" + Session["uid"].ToString() + "_"
+ FileUpload4.FileName.ToString()));
att4.Text =FileUpload4.FileName.ToString();
}
FileUpload4.Visible = false;
FileUpload3.Visible = false;
btnuploadsinglegroup.Visible = false;
MultiView1.ActiveViewIndex = 1;
}
protected void LinkButton_Click(object sender, EventArgs e)
{

}
protected void LinkButton2_Click(object sender, EventArgs e)
{
btnuploadsinglegroup.Visible = true;
FileUpload3.Visible = true;
FileUpload4.Visible = true;

MultiView1.ActiveViewIndex = 1;

}
protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
}
protected void btnsend_Web_Click(object sender, EventArgs e)
{
MailMessage mail = new MailMessage();
mail.To.Add(txtemaill.Text);

mail.From = new MailAddress("demoemailserver2014@gmail.com");


mail.Subject = txtsubject0.Text;

string Body = txtmessage0.Text;


mail.Body = Body;

mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.Credentials = new System.Net.NetworkCredential
("demoemailserver2014@gmail.com", "9574903871");

smtp.EnableSsl = true;
smtp.Send(mail);
txtemaill.Text = "";
txtsubject0.Text= "";
MultiView1.ActiveViewIndex = 2;
lblsnd.Text = txtemaill.Text;

}
protected void RadioButton3_CheckedChanged(object sender, EventArgs e)
{
MultiView1.ActiveViewIndex = 3;

}
}
47
CHAPTER 9

BIBLIOGRAPHY AND REFERENCES

48
https://www.3cx.com/pbx/voicemail-system/

https://www.youtube.com/watch?v=PYyNl_4G55A

49