Mengirim Fake Mail
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
html, body {
border: 0;
margin: 0;
padding: 0;
}
body {
font: 90%/1 arial, helvetica, sans-serif;
background: #fff;
width: 100%;
}
h1 {
margin: 10px 0 30px;
font-size: 220%;
}
#contentForm {
display: block;
width: 500px;
margin: 70px auto;
padding: 25px;
border: 1px solid black;
background-color: white;
}
label {
display: block;
float: left;
clear: left;
Width: 150px;
line-height: 20px;
margin-bottom: 10px;
margin: 5px 0;
}
input, textarea, select {
margin: 0;
padding: 2px;
font-size: 1em;
color: #666666;
background: #F5F5F5;
border: 1px solid #ccc;
margin: 5px 0;
}
input:focus, textarea:focus, select:focus {
border: 1px solid #999;
background-color: #FFFFFF;
}
input.button {
cursor: pointer;
font-weight: bold;
width: 90px;
height: 28px;
margin-left: 150px;
}
span.required{
font-size: 13px !important;
color: red !important;
}
.msgSent {
font-size: 20px;
text-align: center;
}
a{
text-decoration: none;
outline: none;
}
a img{
border: none;
}
h2{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 36px;
text-align: center;
font-weight: normal;
}
#atas{
background: #000;
margin: 0px auto;
padding: 5px 0;
text-align: center;
position: relative;
width: 100%;
}
#bawah{
text-align: center;
padding: 5px 0;
width: 100%;
}
</style>
</head>
<body>
<div id="page-wrap">
<div id="contentForm">
<h1><center>Fake Email</center></h1>
<form method="post" name="contFrm" id="contFrm" action="">
<label><span class="required">*</span> Email Korban:</label>
<input name="korban" type="text" class="box" id="korban" size="30" value="" />
<label><span class="required">*</span> Email Palsu Kamu: </label>
<input name="email" type="text" class="box" id="email" size="30" value="" />
<label><span class="required">*</span> Subject: </label>
<input name="judul" type="text" class="box" id="judul" size="30" value="" />
<label><span class="required">*</span> Message: </label>
<textarea name="pesan" cols="40" rows="3" id="pesan"></textarea>
<input name="send" type="submit" class="button" id="send" value="SUBMIT" />
</form>
</div>
</div>
<div id="bawah">
<strong>Copyleft By <a href="http://id-deprito.blogspot.com/">Andre Depri†o</a> | 2011</strong>
</div>
</body>
</html>
<?php
$korban = $_POST['korban'];
$email = 'From: ' . $_POST['email'];
$judul = $_POST['judul'];
$body = $_POST['pesan'];
if($korban && $email)
{
if(mail($korban, $judul, $body, $email))
echo("<script>alert('Email Berhasil Dikirim!');</script>");
else
echo("<script>alert('Email Gagal Dikirim');</script>");
}
?>Yap, tinggal upload ke hostingan dan simpan dengan ekstensi *.php
0 komentar:
Posting Komentar