Public feed #599045

Untitled

public php v1 · immutable
Raw Edit
·published 2007-07-01 19:44 UTC
rendered paste body
<?php$para="tudireccion@email.com";?><FORM method="post" action='?envios=si'>Asunto <INPUT type="text" name="tema"><br>Nombre: <INPUT type="text" name="autor"><br>email: <INPUT type="text" name="email"><br> mensaje : <textarea rows='13' name='mensaje' cols='44'></textarea><br><INPUT type="submit" name="envio" value="Enviar"><br></FORM> <?PHPif ($envios=='si'){// en versiones actuales de php // los globales estan off por// motivos de seguridad// para no tocar la configuracion // del php.ini//  solo hay que recoger las variables$email=$_POST[email];$mensaje=$_POST[mensaje];$autor=$_POST[autor];$tema=$_POST[tema];$cabecera .= "From: ".$autor."<" .$email.">\nReply-To:".$email."\nX-Mailer: MS Outlook\nReturn-Path: ".$email;if (@mail ($para, $tema, $mensaje, $cabecera)){echo "Enviado<br>";}else{echo "Error<br>";}}?>