Ver Mensaje Individual
  #30 (permalink)  
Antiguo 05/10/2008, 16:11
Avatar de Artdeco
Artdeco
 
Fecha de Ingreso: abril-2005
Ubicación: Barcelona
Mensajes: 165
Antigüedad: 19 años
Puntos: 1
Respuesta: Arreglar este formulario PHP

Trabajo en un servidor, estoy subiendo las cosas y probándolas en servidor. A la vez, estoy probando el código original que tengo, y sí funciona =S

No te he pegado el código porque no he hecho nada especial, sólo cambiar la dirección de correo de ejemplo, lo demás está igual:

Código PHP:
<?php
$nombre_origen    
"Tuboolar Web";  
$email_origen     "[email protected]";
$email_destino    "".$row['email']."";    



$asunto           "lo que quieras";  

$mensaje          '<table width="629" border="0" cellspacing="1" cellpadding="2">  
  <tr>  
    <td width="623" align="left"></td>  
  </tr>  
  <tr>  
    <td bgcolor="#2EA354"><div style="color:#FFFFFF; font-size:14; font-family: Arial, Helvetica, sans-serif; text-transform: capitalize; font-weight: bold;"><strong>     Estos son sus datos de registro y link de activacion '
.$row['usuario'].'</strong></div></td>  
  </tr>  
  <tr>  
    <td height="95" align="left" valign="top"><div style=" color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; margin-bottom:3px;"> USUARIO: '
.$row['usuario'].'</strong><br><br><br>  
           
          <strong>SU EMAIL : </strong>'
.$row['email'].'</strong><br><br><br>  
                     
                      
            </div>  
    </td>  
  </tr>  
</table>'
;  

                  


$formato          "html";  

//*****************************************************************//  
$headers  "From: $nombre_origen <$email_origen> \r\n";  
$headers .= "Return-Path: <$email_origen> \r\n";  
$headers .= "Reply-To: $email_origen \r\n";  


$headers .= "X-Sender: $email_origen \r\n";  

$headers .= "X-Priority: 3 \r\n";  
$headers .= "MIME-Version: 1.0 \r\n";  
$headers .= "Content-Transfer-Encoding: 7bit \r\n";  

//*****************************************************************//  
   
if($formato == "html")  
 { 
$headers .= "Content-Type: text/html; charset=iso-8859-1 \r\n";  }  
   else  
    { 
$headers .= "Content-Type: text/plain; charset=iso-8859-1 \r\n";  }  

if (@
mail($email_destino$asunto$mensaje$headers))   
    {   
      
      
      
     }

?>