#18 Mengirim Fake Mail

Mengirim Fake Mail

[codesyntax lang=”php”]

<!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">
		<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;

  font-size: 13px !important;
  color: red !important;

.msgSent {
  font-size: 20px;
  text-align: center;

  text-decoration: none;
  outline: none;
a img{
  border: none;

  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size: 36px;
  text-align: center;
  font-weight: normal;

  background: #000;
  margin: 0px auto;
  padding: 5px 0;
  text-align: center;
  position: relative;
  width: 100%;

  text-align: center;
  padding: 5px 0;
  width: 100%;


<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" />
<div id="bawah">
	<strong>Copyleft By <a href="http://andredeprito.co.cc/">Andre Depri&dagger;o</a> | 2011</strong>


	$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>");
			echo("<script>alert('Email Gagal Dikirim');</script>");



Yap, tinggal upload ke hostingan dan simpan dengan ekstensi *.php


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s