Código:
Luego en el Php... Segun yo estodo, pero no manda nada<form name="encuestaPersonas" action="correo.php" method="post"> <input type="text" size="20" name="nombre"><br> <input type="text" size="20" name="ciudad"><br> <input type="text" size="20" name="email"><br> <textarea name="dimePersona1" cols="20" rows="3">Pregunta ?...</textarea> <br><br> <textarea name="dimePersona2" cols="20" rows="3">Pregunta ?...</textarea> <br> <input type="submit" value="Enviar"> <input type="reset" value="Borrar"> </form>
Código:
Hasta ahora lo he probado en localhost:8080 pero si le pongo alguna direccion de correo valida no envia nada if(!empty($HTTP_POST_VARS['nombre']) || !empty($HTTP_POST_VARS['ciudad']) || !empty($HTTP_POST_VARS['email']) || !empty($HTTP_POST_VARS['dimePersona1']) || !empty($HTTP_POST_VARS['dimePersona2']) ) { //Direccion a ENVIAR $to = "[email protected]"; //Asunto $subject = "Pregunta a estas Personas"; //Body $body = stripslashes($HTTP_POST_VARS['dimePersona1']) . " | " . stripslashes($HTTP_POST_VARS['dimePersona2']); $body .= "\n---------------------------\n"; $body .= "Enviado por: " . $HTTP_POST_VARS['nombre'] . " <" . $HTTP_POST_VARS['email'] . ">\n"; $body .= "\n" . $HTTP_POST_VARS['ciudad']; $body .= "\n\n"; $body .= "\nservicio generado por misitio.com\n"; $header = "De: " . $HTTP_POST_VARS['nombre'] . " <" . $HTTP_POST_VARS['email'] . ">\n"; $header .= "Responder-A: " . $HTTP_POST_VARS['nombre'] . " <" . $HTTP_POST_VARS['email'] . ">\n"; $header .= "X-Mailer: PHP/" . phpversion() . "\n"; $header .= "X-Priority: 1"; /* header(‘Content-Type: text/html; charset=utf-8'); */ //Mail Sentinel mail($to, $subject, $body, $header); }