Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/09/2007, 01:08
Avatar de markshock
markshock
 
Fecha de Ingreso: abril-2004
Ubicación: Allí, al fondo a la izqui
Mensajes: 316
Antigüedad: 20 años
Puntos: 0
Re: Algunos correos que se reciben y muestran el código y otros no...

Cita:
Iniciado por Bonez Ver Mensaje
Perdona entonces.

No conozco phpmailer. Si no es muy extensa la clase podrías postearla e igual vemos algún fallo, pero ya te digo que es muy muy raro.
la url... http://phpmailer.sourceforge.net/

Código:
        $idr = $row["id_reg"];
	$to = $row["para"];
	$name = $row["name"];
	$subject = $row["subject"];
	$from = $row["de"];
	$mensaje = $row["message"];
	
	$mail = new PHPMailer();
	$mail->Host = "localhost";
	$mail->From = $from;
	$mail->FromName = $name;
	$mail->Subject = $subject;
	$mail->AddAddress($to, $name);

        $mail->Body = $mensaje;
	$mail->IsHTML(true);
	$mail->Send();
$mensaje es el cuerpo del correo, que lo he almacenado en la base de datos para posibles reenvios...


Este es el código que guardo en la base de datos...

Código:
$mensaje = '<head>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td style="font-family: Arial; font-variant: small-caps; font-size: 12pt;"><strong>formulario de contacto</strong></td>
	</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="40" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Fecha:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$hoy.'</td>
	</tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="120" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Nombre y Apellidos:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$_POST["nombre"].'</td>
	</tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="60" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Teléfono:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$telefonos.'</td>
	</tr>
</table><br>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="50" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Provincia:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$_POST["provincia"].'</td>
	</tr>
</table><br>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="50" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Ciudad:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$_POST["ciudad"].'</td>
	</tr>
</table><br>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="50" style="font-family: Arial; font-size: 9pt; font-weight: bold;">E-Mail:</td>
		<td style="font-family: Arial; font-size: 9pt;"><a href="mailto:'.$_POST["email"].'">'.$_POST["email"].'</a></td>
	</tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="100" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Tipo de Cubierta:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$tipoCubierta.'</td>
	</tr>
</table><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="235" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Color que usted prefiere para la cubierta:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$_POST["cubierta_color"].'</td>
	</tr>
</table><br>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="200" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Tamaño aproximado de su piscina:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$_POST["tamanyo_piscina"].'</td>
	</tr>
</table><br>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td width="140" style="font-family: Arial; font-size: 9pt; font-weight: bold;">Información sobre SPA:</td>
		<td style="font-family: Arial; font-size: 9pt;">'.$spa.'</td>
	</tr>
</table>
</body>
';

Muchas gracias ^_^ por la hand.
__________________
Señoooraaaa!! Que camisetas!!!

"Hay 10 tipos de personas, las que piensan en binario y las que no"
_________________________________