Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/06/2004, 15:20
T4X
 
Fecha de Ingreso: enero-2004
Ubicación: myT-Base
Mensajes: 254
Antigüedad: 20 años, 3 meses
Puntos: 2
Hola rocl,


Si lo que buscas es un archivo de sendmail o mailform como lo querais llamar aqui está, lo demás depende de tí,

<?php
####################################
### TM-Mail v1.0 Creada por T4X Copyright 2003 ####
### http://t4x.alturaweb.com ####
####################################
//Este es un formail sencillo, tanto así que las líneas de arriba suplico no borrarlas...
$headers="From: $ADD_NAME <$ADD_EMAIL>\n";
?>
<html>
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body background="archivos/tarjeta1.gif" tracingsrc="archivos/tarjeta1.gif" tracingopacity="100">
<div align="center">
<table width=414 border=0 cellpadding=0 cellspacing=0 bgcolor="ffac00">
<tbody>
<tr>
<td><img src="archivos/confirmar.gif" width="300" height="30"></td>
</tr>
<tr>
<td background=rsvp_archivos/pix-light.gif bgcolor="ffac00">
<form action=sendmail.php method=post>
<div align=center>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">

<?
if (!$HTTP_POST_VARS){ // Ó si tienes versión posterior a PHP 4.1.1 usa $_POST
?>
&copy; </font>
<table width=350 border=0 cellpadding=0 cellspacing=0 bgcolor="ffac00">
<tbody>
<tr>
<td colspan=3><img alt="" border=0 height=10
src="rsvp_archivos/pix.gif" width=1></td>
</tr>
<tr>
<td width=110><font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=2><b>Tu Nombre</b></font></td>
<td width=10><img alt="" border=0 height=1
src="rsvp_archivos/pix.gif" width=10></td>
<td bgcolor="ffac00">
<input name=ADD_NAME>
<font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=1>*Required</font></td>
</tr>
<tr>
<td colspan=3><img alt="" border=0 height=5
src="rsvp_archivos/pix.gif" width=1></td>
</tr>
<tr>
<td width=110 bgcolor="ffac00"><font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=2><b>Tu e-mail:</b></font></td>
<td width=10></td>
<td><input name=ADD_EMAIL> <font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=1>*Required</font></td>
</tr>
<tr>
<td colspan=3><img alt="" border=0 height=5
src="rsvp_archivos/pix.gif" width=1></td>
</tr>
<tr>
<td colspan=3><p><font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=2><b>Confirmaci&oacute;n de Asistencia: </b></font><b><font size="2" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular">Si
<input name="asistencia" type="radio" value="si">
No
<input type="radio" name="asistencia" value="no">
</font></b></p>
</td>
</tr>
<tr>
<td colspan=3><img alt="" border=0 height=5
src="rsvp_archivos/pix.gif" width=1></td>
</tr>
<tr bgcolor="ffac00">
<td colspan=3><font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=2><b>No. de Personas
<input name="personas" type="text" id="personas" value="" size="5">
</b></font></td>
</tr>
<tr>
<td colspan=3><img alt="" border=0 height=5
src="rsvp_archivos/pix.gif" width=1></td>
</tr>
<tr>
<td colspan=3><b><font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=2>S&iacute; deseas enviarnos un mensaje, escr&iacute;benos
aqu&iacute;:</font></b></td>
</tr>
<tr>
<td colspan=3><img alt="" border=0 height=5
src="rsvp_archivos/pix.gif" width=1></td>
</tr>
<tr bgcolor="ffac00">
<td colspan=3>
<textarea cols=36 name=ADD_COMMENT rows=4></textarea>
<font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular
size=1>*Required</font></td>
</tr>
<tr>
<td colspan=3><img alt="" border=0 height=5
src="rsvp_archivos/pix.gif" width=1></td>
</tr>
<tr>
<td width=110><input name=B1 type=submit value=ENVIAR></td>
<td width=10></td>
<td></td>
</tr>
</tbody>
</table>
<?
}else{
//Recibiendo el formulario, componiendo el correo
$cuerpo = "Formulario enviado\n";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["ADD_NAME"] . "\n";
$cuerpo .= "E-mail: " .$HTTP_POST_VARS["ADD_EMAIL"] . "\n";
$cuerpo .= "Confirmación de Asistencia: " . $HTTP_POST_VARS["asistencia"] . "\n";
$cuerpo .= "No. de Personas: " . $HTTP_POST_VARS["personas"] . "\n";
$cuerpo .= "Mensaje adicional: " . $HTTP_POST_VARS["ADD_COMMENT"] . "\n";
//Envio al correo, solo modifique las 2 primeras lineas con comilla simple
mail("[email protected]","Escriba aquí el asunto con el que llega al e-mail",$cuerpo,$headers);
//Despues de echo dentro de comillas escriba lo quiere mostrar cuando se envia la info
echo "Gracias, su información se ha enviado completamente!!!";
}
?>
</div>
</form></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>

Espero que te sirva
__________________
Ahora T4X es
WinGFX!!!!!

Última edición por T4X; 15/06/2004 a las 15:21