Quisiera que ademas de guardarse los datos, me envie un correo a mi con los datos del registrado y adicionalmente uno de confimación al usuario que se registró.
Me podrian ayudar con esto?
Intentet colocando lo siguiente
Código PHP:
// Let's mail the user!
$subject = "Participante registrado";
$message =
"<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html charset=iso-8859-1\">
</head>
<body bgcolor=\"#F3F3F3\" text=\"#333333\" link=\"#666666\" vlink=\"#666666\" alink=\"#333333\" leftmargin=\"0\" topmargin=\"0\">
<table width=\"100%\" height=\"100%\">
<tr>
<td>
hoooola
<br>
este es mi nombre: $nombre
<br>
y este mi apellido $apellido
</td>
</tr>
</table>
</body>
</html>";
mail("[email protected]", $subject, $message, "From: Dopi Web<[email protected]>\nContent-Type: text/html; charset=iso-8859-1\nX-Mailer: PHP/" . phpversion());
//email the user
$subject1 = "Participante registrado";
$message1 =
"<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<body bgcolor=\"#F5F5F5\" text=\"#333333\" link=\"#666666\" vlink=\"#666666\" alink=\"#333333\" leftmargin=\"0\" topmargin=\"0\">
sdasdasda lslrara $nombre $apellido
</body>
</html>";
mail($email, $subject1, $message1, "From: DopiWeb <[email protected]>\nContent-Type: text/html; charset=iso-8859-1\nX-Mailer: PHP/" . phpversion());