13/09/2008, 12:53
|
| | | Fecha de Ingreso: febrero-2003
Mensajes: 135
Antigüedad: 21 años, 2 meses Puntos: 0 | |
Respuesta: Que código puedo añadir a la funcion mail para.... Nada, no me va.
Te envío el código php completo por si hay algo que perjudique el envío que tu me has puesto.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Documento sin título</title>
</head> Código PHP: <? $headers = "Content-type: text/html; charset=UTF-8\nFrom: [email protected]\n"; $headers .= "Reply-To: " . $_POST["email"]; $fecha = time (); $LaFecha = strftime("%Y-%m-%d"); $LaHora = date ( "h:i:s" , $fecha ); $Cabecera = ' <style type="text/css"> <!-- .Estilo1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; color: #FFFFFF; } .Estilo2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #02555B; } .bordecealda { border: thin solid #02555B; } .Estilo8 { font-size: 11; font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-weight: normal; color: #000000; text-decoration: none; } .Estilo10 {font-size: 11; font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-weight: normal; color: #02555B; text-decoration: none; } a { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FF9900; } a:link { text-decoration: none; } a:visited { text-decoration: none; color: #FFD18C; } a:hover { text-decoration: underline; } a:active { text-decoration: none; } --> </style> <font color="#02555B" size="2" face="Arial, Helvetica, sans-serif"> <strong> ||| CONTACTO: MIWEB.ES ||| </strong> <br><br> <table width="400" border="1" cellspacing="0" bordercolor="#F0F0F0" class="bordecealda"> <tr bgcolor="#02555B"> <td colspan="2" align="center" bordercolor="#02555B"><span class="Estilo1">DATOS PERSONALES </span></td> </tr> <tr> <td width="111" bgcolor="#F0F0F0" class="Estilo2"><span class="Estilo2">Nombre:</span></td> <td width="281" class="Estilo5"><span class="Estilo8">' . $_POST["nombre"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Apellidos:</td> <td class="Estilo5"><span class="Estilo8">' . $_POST["apellidos"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Empresa:</td> <td class="Estilo5"><span class="Estilo8">' . $_POST["empresa"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Dirección:</td> <td class="Estilo5"><span class="Estilo8">' . $_POST["direccion"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Población:</td> <td class="Estilo5"><span class="Estilo8">' . $_POST["poblacion"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Provincia:</td> <td class="Estilo5"><span class="Estilo8">' . $_POST["provincia"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">CP: </td> <td class="Estilo5"><span class="Estilo8">' . $_POST["codigopostal"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Téléfono:</td> <td class="Estilo5"><span class="Estilo8">' . $_POST["telefono"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Email:</td> <td class="Estilo5"><span class="Estilo10">' . $_POST["email"] . '</span></td> </tr> <tr> <td bgcolor="#F0F0F0" class="Estilo2">Comentarios: </td> <td class="Estilo8">' . $_POST["comentarios"] . '</td> </tr> </table> <a href = "mailto:' . $_POST["correo"] . '">' . $_POST["correo"] . '</a> <br> texto insertado: ' . $_POST["tectocon"] . ' <br> Realizada con Fecha ' . strftime("%d-%m-%Y") . ' a las ' . date ( "h:i:s" , $fecha ) . ' <br> Contacto de miweb.es, ' . ' <br> ' . $_POST["tectocon"] . ' <br><br> </font> '; @mail ("$correo", "contacto",$cabecera,$headers); @mail ("[email protected]","CONTACTO: ||| MIWEB.ES |||",$Cabecera,$headers); ?> <body>
</body>
</html> |