login.html
Código PHP:
<form action="email.phtml" method="get"> <big><big><span
style="font-family: Edwardian Script ITC;"><small><small><span
style="color: rgb(255, 255, 255); font-family: Times New Roman,Times,serif;">E-mail:</span></small></small>
</span></big></big><input name="direccion"
type="text" /><br />
<br />
<span style="color: rgb(255, 255, 255); font-weight: bold;">
<input value='Enviar' type='submit'></a></form>
Código PHP:
<?php
$mail = $_GET['direccion'];
$username = $_COOKIE['loggedin'];
include ('config.php');
mail("$mail","Tu contraseña","Solicitaste un correo con tu contraseña en la cuenta $username de stormofsighs.mywebcommunity.org. Tu contraseña es $password");
?>