anoniem mail scriptje

Status
Niet open voor verdere reacties.

Papi14

Gebruiker
Lid geworden
21 sep 2013
Berichten
65
Hoi,

ik wou een anoniem mailscriptje maken,maar hij werkt niet helemaal goed!

weet iemand wat er mis is???????

dit is de index.php
HTML:
<!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=utf-8" />
<title>Anoniem Mailen!, Gratis en voor niks zonder reclame!, grijp je kans!</title>

<style type="text/css">
body,td,th {
	font-family: Verdana, Geneva, sans-serif;
	color: #CCC;
	font-size: 18px;
}
body {
	background-color: #000;
	background-image: url(images/images.jpg);
	background-repeat: repeat;
}
.form {
	color:#CCC;
	background-color:#000;
	font-weight:bold;
	opacity:0.8;
}
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="verwerk.php">

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="500" border="0" align="center">
  <tr>
    <th width="200" align="right" scope="col">Aan:  </th>
    <th width="200" align="left" scope="col">
      <input name="aan" type="text" class="form" />
    </th>
  </tr>
  <tr>
    <th align="right" scope="col">Van: </th>
    <th align="left" scope="col">
      <input name="van" type="text" class="form" />
      </th>
  </tr>
  <tr>
    <th align="right" scope="col">&nbsp;</th>
    <th align="left" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <th align="right" scope="col">Onderwerp: </th>
    <th align="left" scope="col">
      <input name="onderwerp" type="text" class="form" /></th>
  </tr>
  <tr>
    <th align="right" valign="top" scope="col">Bericht: </th>
    <th align="left" scope="col">
      <textarea name="bericht" cols="45" rows="5" class="form"></textarea></th>
  </tr>
  <tr>
    <th align="right" valign="top" scope="col">&nbsp;</th>
    <th align="left" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <th align="right" valign="top" scope="col">Hoe vaak: </th>
    <th align="left" scope="col">
      <input name="aantal" type="text" class="form" size="1" maxlength="1" />
      </th>
  </tr>
  <tr>
    <th align="right" valign="top" scope="col">&nbsp;</th>
    <th align="left" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <th align="right" valign="top" scope="col">&nbsp;</th>
    <th align="left" scope="col"><input name="verzenden" type="submit" class="form" value="Verzenden" /></th>
  </tr>
</table>
</form>
</body>
</html>

dit is de verwerk.php

HTML:
<?php 
if (isset($_POST['verzenden'])) {
	$aan = $_POST["aan"];
	$van = $_POST["van"];
	$onderwerp = $_POST["onderwerp"];
	$bericht = $_POST["bericht"];
	$aantal = $_POST["aantal"];
	
	mail($aan, $onderwerp, $bericht, "from: $van");
	header("location: index.php");
}
?>
 
Mailen heeft met veel meer dan de php code te maken, en aangezien de code correct lijkt zal het eerder liggen aan de server...
Heb je gecontroleerd of je mailinstellingen goed staan voor PHP?
 
hij werkt niet helemaal goed!

Dat is met alles wat hier gepost wordt, maar wat gebeurt er, wat gaat er mis, wat had je verwacht?

Je moet trouwens goed opletten met dit script, als je dit online zet wordt je in no-time gebruikt als spam portal.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan