Programación php
Email: Password:


¡Regístrate gratis! | ¿Has perdido tu password?

Home
Blog

En él que podrás informarte de todas las noticias relacionadas con el posicionamiento de páginas web.

Ir al Blog de posicionamiento web



Foro de programación en PHP

Responder el mensaje

Ayuda mailer php

Autor: Cesar!!
Publicado: 07-9-2008 04:45 PM
bueno ice un maler en php pero nose ke esta mal aber si m exan una mano

<?php
set_time_limit(0);
if($_POST['Bomber'];
{
//Email del destinatario
$Para=$_POST['Para'];
$Email=$_POST['Email'];

//Asunto del email
$Asunto=$_POST['Asunto'];

//Mensaje del email
$mensaje=$_POST['html'];
$mensaje=stripslashes($mensaje);

//Cabezado de email
funcion shuffleit()
{
retybr str_shuffle("t&k");
}
if($_POST['Para'] = "" )
{
$headers="Para:" . shuffleit() . "@" . shuffleit() . "net";
}
else
{
$headers="Para: " . $_POST['Para'];
}
$headers="Para:" . $Para . "<" . $Email . ">\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "Content-Transfer-encoding: 8bit\n";
$headers .= "Reply-To: " . $Para . " <" . $Email . ">\n";
$headers .= "Return-Path: " . $Email . "\n";
$headers .= "Message-ID: <".md5(uniqid(time()))."@$mailserver>\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSmail-Priority: High\n";
$headers .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\n";
$headers .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441";

?>
<html>
<head>
<title>Mi primer mail bomber</title>
</head>
<body>

<strong>Intentando hacer spam.</strong><br /><br />

<form method="post" action="">
<strong>Para:</strong><br />
<input type="text" name="Para">
<br /><br />

<strong>Email:</strong><br />
<input type="text" name="email"><br /><br />
<strong>Asunto:</strong><br />
<input type="text" name="Asunto"><br /><br />

<strong>Mensaje:</strong><br />
<textarea name="Mensaje" cols="30" rows="20"></textarea><br /><br />
<input type="submit" value="Enviar spam">
</form>

</body>
</html>
<?php
}
?>
Autor: php user
Publicado: 09-9-2008 02:50 AM
Por esas casualidades de la vida.. no sabrás que el SPAM es ilegal, además de molesto no?
Autor: darkwizard
Publicado: 09-9-2008 05:03 AM
No te funciona? JODETE