Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/04/2013, 13:40
pembe180
 
Fecha de Ingreso: noviembre-2006
Mensajes: 83
Antigüedad: 17 años, 5 meses
Puntos: 2
Respuesta: No me llegan los correo de suscripccion!

Este si me llega el mensaje pero no me muestra los datos de la persona..
como malito no me gusta, la gente le da pereza hacer mas movimientos!
me echan la mano!

Código HTML:
<div id="form-wrapper">
    <form>
<form action="sendemail.php" method="POST">
        <div id="form-inner">

            <label for="name">Name:</label>
            <input type="text" class="input" id="name" placeholder="John Doe">
        
            <label for="email">Email:</label>
            <input type="email" class="input" id="email" placeholder="[email protected]">
        
            <label for="message">Message:</label>
            <textarea class="input textarea" id="message" placeholder="Your message here"></textarea>    
        
             <input type="submit" class="button" value="Send message">

        </div>
    </form>
</div> 
Código HTML:
<?php
       // from the form
       $name = trim(strip_tags($_POST['name']));
       $email = trim(strip_tags($_POST['email']));
       $message= htmlentities($_POST['message']);

       // set here
       $subject = "Contact form submitted!";
       $to = '[email protected]';

       $body = <<<HTML
$message
HTML;

       $headers = "From: $email\r\n";
       $headers .= "Content-type: text/html\r\n";

       // send the email
       mail($to, $subject, $body, $headers);

       // redirect afterwords, if needed
       header('Location: /contact');
?>