";
$html=$html."Hello,You had requested for your WorldImages username/password details. They are:
";
$html=$html."Username: ".$txtEmail."
";
$html=$html."Password: ".$passwd."
";
$html=$html."You can login by visiting the WorldImages member panel at http://www.worldimages.com/member/
";
$html=$html."Regards,
Webmaster";
// We've built the mail body, now we create a mailer object and send the mail across
$mail = new phpmailer();
$mail->From="webmaster@worldimages.com";
$mail->FromName="WorldImages Webmaster";
$mail->Subject="Forgotten Password Reminder";
$mail->IsSMTP();
$mail->SMTPAuth=false;
$mail->IsHTML(true);
$mail->Body = $html;
$mail->AddAddress($txtEmail, $txtEmail);
if(!$mail->Send())
echo "There was an error sending the email. Please try later. We are sorry for any inconvenience caused.
";
else{
?>
We have sent your username and password by email.
Please check your email in a few minutes.
Click here
to go back to the login screen
}}}?>