![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/12/2008, 07:20
|
![Avatar de Pedro_valencia](http://static.forosdelweb.com/customavatars/avatar208142_1.gif) | | | Fecha de Ingreso: diciembre-2007 Ubicación: Valencia
Mensajes: 82
Antigüedad: 17 años, 1 mes Puntos: 6 | |
Respuesta: Envio de confirmacion de registro - PHP - MySQL Usa este ejemplo que he creado de la función mail: Código PHP: <?php // Indica el asunto del email $asunto = "Asunto del email"; // Texto del Email $mensaje = ' <html> <head> <title>Asunto del email</title> </head> <body> Texto del email, HTML incluido. </body> </html> '; // Para enviar correo HTML, la cabecera Content-type debe definirse $cabeceras = 'MIME-Version: 1.0' . "\r\n"; $cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Cabeceras adicionales $cabeceras .= 'From: [email protected]'; // Enviamos el mail mail('[email protected]', $asunto, $mensaje, $cabeceras); ?> Saludos. |