04/10/2008, 14:36
|
| | | Fecha de Ingreso: febrero-2008
Mensajes: 2.183
Antigüedad: 16 años, 2 meses Puntos: 52 | |
Respuesta: Arreglar este formulario PHP Hola de nuevo
intenta adaptarte este codigo que envia los headers correspondientes a ver si te sirve para lo que quieres Código PHP: $nombre_origen = "Tuboolar Web"; $email_origen = "[email protected]"; $email_copia = "[email protected]"; $email_ocultos = "[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)) { }
Última edición por jaronu; 04/10/2008 a las 14:44 |