You are on page 1of 31

INDEX

TITLE NO. CONTENT PAGE NO.

1 Introduction

2 Project Abstract

3 Tools Used

4 Database Tables

5 Data Flow Diagram

6 E-R Diagram

7 Screen Shots

8 Coding

9 Conclusion

10 References
OVERVIEW

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. 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. What is mailing server? Mailing server is
programmed by which you can send emails to your friends, who are registered
with that server. It allows a user to transfer text and data like picture, video,
mp3, etc. However, it has some limitations for the size of the attachment, but
you can change it for your server and as per business needs. In mailing server, a
user can register herself/himself. After registration, they can login with their
existing user id and password. The mailing server allows the user to customize
their profile, change themes as per own interest. Mailing server is also a very
secure system. It provides you security as you needed your profile is protected
with a password. You can change the password when you feel insecure with the
old password. There is also the password recovery system in case you forgot
your password you can recover your profile by verifying your alternate email or
phone number. Mymail is capable of all of the above discussed.
PROJECT ABSTRACT

Today’s world is all depend upon email system. It also becomes a significant
need of the businesses.
Mymail is one of the secure and fast communicating mediums for a modern era.

The Mymail 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.

Mymail Perform all these functions:-


1. Compose an email.
2. Send an email
3. Receive an email
4. Saving an email in the form of draft
5. Showing the detail of the received mail
6. Saving the email ids in contact list
7. Secured by password
8. Recovery of the password
SCREEN SHOTS
HOME PAGE
SIGN UP PAGE
USER HOME PAGE
INBOX PAGE
SENT PAGE
COMPOSE PAGE
DRAFT PAGE
CODING
HOME PAGE
<?php

session_start();

//insertion

if($_POST['Sign_in'])

if(empty($_POST["un"]) || empty($_POST["pass"]))

echo"<script>alert('Username Or Password Cannot Be Blank');</script>";

else

include("connect.php");

$_SESSION["uname"]=$_POST["un"];

$_SESSION["upass"]=$_POST["pass"];

$q="select * from register where u_name='$_POST[un]' and


u_pass='$_POST[pass]'";

$res=mysql_query($q);

$c=mysql_num_rows($res);

if($c!=0)

header("Location:account.php");

else

$res="<h3>Invalid Username</h3>";

?>
<html>

<head><title>MailBox</title>

<link rel="stylesheet" type="text/css" href="css/style.css">

<form action="" method="post">

</head>

<body>

<div id="mainBody">

<div id="wrapper">

<div id="head">

<div class="image">

<img src="images/unnamed.png" height="150px" width="150px">

</div>

<div class="image_title">

<br>

<br>

<br>

<h2>WELCOME TO MyMail.com</h2>

</div>

<h2 align="right">New to MyMail.com? <a href="register.php">CREATE AN


ACCOUNT</a></h2>

</div>

<div id="centre">

<div class="content">

<img src="images/unnamed.png" height="100" width="100"><b style="font-


size:24px">Email By MyMail</b><br>

<img src="images/Spark-mail-icon-rounded.png" height="100"


width="100"><b>Fast and Easy</b><br>

<b>An efficient and useful email service by MyMail</b><br>

<b>Faster and easily accessible emails</b><br>

<img src="images/Capture3.JPG" height="100" width="100"><h3>Secured


emails</h3>

<h4>All your mails secured with MyMail</h4>


</div>

<div class="right">

<table width="308" height="500px" border="2" align="center" cellpadding="20"


bgcolor="#999999" rules="none">

<tr>

<td width="184" height="10px"><b>Sign In</b>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Mail Box</b>

</td>

</tr>

<tr>

<td align="center"><img src="images/intro-logo.png" height="130px"


width="50%">

</td>

</tr>

<tr>

<td align="center"> Username :

<input type="text" name="un">

</td>

</tr>

<tr>

<td align="center"> Password :

<input type="password" name="pass">

</td>

</tr>

<tr>

<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<input type="checkbox" name="c1" value="Remember me">

Remember me

</td>

</tr
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<input type="submit" value="Sign In" name="Sign in">

</td>

</tr>

<tr>

<td align="center">

<?php echo $res;?>

</td>

</tr>

<tr>

<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;

<a href="register.php">Don't have an Account?</a>

</td>

</tr>

</table>

</div>

</div>

<div id="footer"><h2 align="center"> &copy; MyMail.com</h2></div>

</div>

</div>

</body>

</form>

</html>
SIGN UP PAGE
<html>

<head><title>MyMail</title>

<link rel="stylesheet" type="text/css" href="css/style.css">

</head>

<body>

<form action="" method="post">

<div id="mainBody">

<div id="wrapper">

<div id="head">

<div class="image">

<img src="images/unnamed.png" height="150px" width="150px">

</div>

<div class="image_title">

<br>

<br>

<br>

<h2>WELCOME TO MyMail.com</h2>

</div>

<h2 align="right"><a href="index.php">Sign In</a></h2>

</div>

<div id="centre">

<div class="content">

<img src="images/unnamed.png" height="100" width="100"><b style="font-


size:24px">Email By MyMail</b><br>

<img src="images/Spark-mail-icon-rounded.png" height="100"


width="100"><b>Fast and Easy</b><br>

<b>An efficient and useful email service by MyMail</b><br>

<b>Faster and easily accessible emails</b><br>

<img src="images/Capture3.JPG" height="100" width="100"><h3>Secured


emails</h3>

<h4>All your mails secured with MyMail</h4>


</div>

<div class="right">

<table height="500px" width="100%" bgcolor="#999999">

<tr>

<td align="center">

<h2>Enter Your Details</h2>

</td>

</tr>

<tr>

<td align="center">

Enter First Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input


type="text" name="fname" placeholder="First Name" required>

</td>

</tr>

<tr>

<td align="center">

Enter Last
Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="lname"
placeholder="Last Name" requires>

</td>

</tr>

<tr>

<td align="center">

Choose Your Username:&nbsp;<input type="text" name="uname"


placeholder="Username" required>

</td>

</tr>

<tr>

<td align="center">

Create a Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
type="password" name="pass" placeholder="Password" required>

</td>

</tr>
<tr>

<td align="center">

Confirm Your Password&nbsp;<input type="password"


name="cpass" placeholder="Confirm Password" required>

</td>

</tr>

<tr>

<td align="center">

Birthday:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;<input type="date" name="dob" min="1980/01/01"
max="2099/01/01" required>

</td>

</tr>

<tr>

<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;

Gender:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
type="radio" name="gender" value="male">Male

<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;<input type="radio" name="gender" value="female">Female

</td>

</tr>

<tr>

<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

Mobile
Phone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text"
name="pnumber" placeholder="Mobile Number" required>

</td>
</tr>

<tr>

<td align="center">

Country:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<select name="country">

<option>India</option>

<option>America</option>

<option>Australia</option>

<option>Bangladesh</option>

</select>

</td>

</tr>

<tr>

<td align="center">

<input type="submit" name="create_an_account" value="Create An


Account">

</td>

</tr>

</table>

</div>

</div>

<div id="footer"><h3 align="center"> &copy; MyMail.com</h3></div>

</div>

</div>

</form>

</body>

</html>

<?php

$FNAME=$_POST['fname'];

$LNAME=$_POST['lname'];
$UNAME=$_POST['uname'];

$PASS=$_POST['pass'];

$CPASS=$_POST['cpass'];

$DOB=$_POST['dob'];

$GENDER=$_POST['gender'];

$PNUMBER=$_POST['pnumber'];

$COUNTRY=$_POST['country'];

include("connect.php");

if($_POST['create_an_account'])

if(empty($FNAME) || empty($LNAME) || empty($UNAME) || empty($PASS) || empty($CPASS) ||


empty($DOB) || empty($GENDER) || empty($PNUMBER) || empty($COUNTRY))

echo"<script>alert('Any Field Must Not Be Left Blank');</script>";

else if($pass!=$cpass)

echo"<script>alert('Password does not match');</script>";

else

$ins="insert into
register(u_fname,u_lname,u_name,u_pass,u_cpass,u_dob,u_gender,u_pnumber,u_country)values('
$FNAME','$LNAME','$UNAME','$PASS','$CPASS','$DOB','$GENDER','$PNUMBER','$COUNTRY')";

$res=mysql_query($ins);

echo"<script>alert('One New User Registered');</script>";

?>
SENT PAGE
<?php

session_start();

if(empty($_SESSION["uname"]))

header("location:index.php");

if($_POST['Logout'])

header("location:logout.php");

?>

<html>

<head><title>Account</title>

<link rel="stylesheet" type="text/css" href="css/style.css">

<style>

li{

list-style:none;

padding-top:20px;

text-align:center;

font-size:15px;

li a{

text-decoration:none;

color:#000099;

li a hover{

color:#0000ff;

background-color:#3399FF;

border-radius:10px;

.left {
background-color: #666666;

#head {

background-color: #4975BC;

#footer {

background-color: #00FF66;

input[type="submit"]

width:150px;

height:30px;

font-size:20px;

background-color: blue;

color: black;

border: 2px solid #008CBA;

b{

font-size:24px;

vertical-align:middle;

</style>

</head>

<body>

<form action="" method="post">

<div id="mainBody">

<div id="wrapper">

<div id="head">

<div class="a_image">

<img src="images/mymail.jpg" height="200%" width="80%" border="">

</div>
<div class="logout">

<input type="submit" value="logout" name="Logout">

</div>

</div>

<div id="center">

<div class="left">

<ul>

<li style="border-style:groove"><a href="compose.php"


target="result">COMPOSE</a></li>

<li><a href="inbox.php" target="result">INBOX</a></li>

<li><a href="sent.php" target="result">SENT</a></li>

<li><a href="draft.php" target="result">DRAFT</a></li>

</ul>

</div>

<div class="content">

<iframe name="result" src="inbox.php" width="100%" height="500px"


frameborder="0">

</iframe>

</div>

</div>

<div id="footer">

<br>

<br>

<h2 align="center"> &copy; MyMail</h2></div>

</div>

</div>

</form>

</body>

</html>
INBOX PAGE
<?php

session_start();

include("connect.php");

$res="select Sender,Subject,Message,Date_time from inbox where Receiver='$_SESSION[uname]'";

$con=mysql_query($res);

?><html><head><style>

td{

background:#CC99CC;

color:#000000;

th{

color:#FFFFFF;

</style></head><body>

<table border="3" width="100%" align="center" bgcolor="" cellpadding="20" rules="all"


style="border-bottom-color:#0000FF">

<tr>

<th width="15%" bgcolor="#00CCCC">Sender</div></th>

<th width="15%" bgcolor="#00CCCC">Subject</div></th>

<th width="40%" bgcolor="#00CCCC">Message</div></th>

<th width="30%" bgcolor="#00CCCC">Date</div></th>

</tr>

<?php

while($row=mysql_fetch_array($con))

echo "<tr><td>$row[0]</td><td>$row[1]</td><td>$row[2]</td><td>$row[3]</td></tr>";

echo"</table>";

?></table></body></html>

<?php
INBOX PAGE
session_start();

include("connect.php");

$res="select Receiver,Subject,Message,Date_time from inbox where Sender='$_SESSION[uname]'";

$con=mysql_query($res);

?>

<html><head><style>

td{

background:#CC99CC;

color:#000000;

th{

color:#FFFFFF;

</style></head><body>

<table border="3" width="100%" align="center" bgcolor="" cellpadding="20" rules="all"


style="border-bottom-color:#0000FF">

<tr>

<th width="15%" bgcolor="#00CCCC">Receiver</div></th>

<th width="15%" bgcolor="#00CCCC">Subject</div></th>

<th width="40%" bgcolor="#00CCCC">Message</div></th>

<th width="30%" bgcolor="#00CCCC">Date</div></th>

</tr>

<?php

while($row=mysql_fetch_assoc($con))

echo
"<tr><td>$row[Receiver]</td><td>$row[Subject]</td><td>$row[Message]</td><td>$row[Date_time
]</td></tr>"; }

echo"</table>";

?></table></body></html>
COMPOSE PAGE
<html>

<head>

<style>

input[type='text']

width:100%;

</style>

</head>

<body>

<form action="" method="post">

<table>

<tr>

<td>To:</td>

<td><select id="user" name="to" style="width:320">

<option selected="selected" value="-1">Select a receiver</option>

<?php include("connect.php");

$res="select u_name from register";

$con=mysql_query($res);

while($row=mysql_fetch_assoc($con))

echo "<option value='".$row['u_name']."'>".$row['u_name']."</option>";

?>

</select>

</td>

</tr>

<tr>

<td>Subject:</td>

<td><input type="text" name="sub"></td>


</tr>

<tr>

<td>Message:</td>

<td><textarea cols="42" rows="15" name="message"></textarea></td>

</tr>

<tr>

<td></td>

<td><input type="submit" name="send"


value="SEND">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" name="draft" value="SAVE
TO DRAFT"></td>

</tr>

</table>

</form>

</body>

</html>

<?php

session_start();

$r=$_POST['to'];

$s=$_SESSION['uname'];

$sub=$_POST['sub'];

$msg=$_POST['message'];

if($_POST['send'])

if(empty($r) || empty($msg))

echo"<script>alert('Please Enter The Receipant Name And Message');</script>";

else

$ins="insert into
inbox(Receiver,Sender,Subject,Message)values('$r','$s','$sub','$msg')";

$con=mysql_query($ins);
if($con)

echo"<script>alert('Message Sent Succesful');</script>";

if($_POST['draft'])

if(empty($r) || empty($msg))

echo"<script>alert('Please Enter The Receipant Name And Message');</script>";

else

$ins="insert into

draft(Receiver,Sender,Subject,Message)values('$r','$s','$sub','$msg')";

$con=mysql_query($ins);

if($con)

echo"<script>alert('Message Sent to Draft Succesful');</script>";

?>
DRAFT PAGE

<?php

session_start();

include("connect.php");

$res="select Receiver,Subject,Message,Date_time from draft where Sender='$_SESSION[uname]'";

$con=mysql_query($res);

?>

<html><head><style>

td{

background:#CC99CC;color:#000000;

th{

color:#FFFFFF;

</style></head><body>

<table border="2" width="100%" bgcolor="#000099" cellpadding="10" cellspacing="40"


rules="all"s>

<tr>

<th width="15%" bgcolor="#00CCCC">Receiver</th>

<th width="15%" bgcolor="#00CCCC">Subject</th>

<th width="40%" bgcolor="#00CCCC">Message</th>

<th width="30%" bgcolor="#00CCCC">Date</th>

</tr>

<?php

while($row=mysql_fetch_assoc($con))

{echo
"<tr><td>$row[Receiver]</td><td>$row[Subject]</td><td>$row[Message]</td><td>$row[Date_time
]</td></tr>";

echo"</table>";?></table></body></html>
Connect to mysql

<?php
mysql_connect("localhost","root","") or die("Could not connect");
mysql_select_db("mailbox") or die("Could not connect");
?>

Logout mail

<?php
session_start();
session_destroy();
header("Location:index.php");
?>
CONCLUSION

I would also like to conclude that theoretical knowledge is necessary but


the practical knowledge is must because with the help of practical knowledge I
came to know that how to develop software as per the company requirement.

With the help of Mymail we can perform:

1. Compose an email.
2. Send an email
3. Receive an email
4. Saving an email in the form of draft
5. Showing the detail of the received mail
6. Saving the email ids in contact list
7. Secured by password
8. Recovery of the password
REFERENCES

 www.codeproject.com
 www.vb.net-informations.com
 www.c-sharpcorner.com
 http://www.databasechannel.com
 http://www.tutorialspoint.com

You might also like