"; } $emailstring .= "Please find your Wealth Dynamics Test token(s) listed below:

"; for ($i=0;$i<$rowcnt;$i++) { $emailstring .= mysql_result($theQ,$i,'password') . "
"; } for ($i=0;$i<$rowcnt2;$i++) { $emailstring .= mysql_result($theQ2,$i,'password') . "
"; } $emailstring .= "
Enter your token here to start a test or retrieve a previous report.

"; $emailstring .= "Very best regards,
Wealth Dynamics Team"; GLOBAL $CONFIG; require_once( $_SERVER["DOCUMENT_ROOT"] . "/wd/phpMailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsMail(); $mail->From = $CONFIG['emailfromemail']; $mail->FromName = $CONFIG['emailfromname']; $mail->AddAddress($emailaddress, $personname); //$mail->AddAddress("steven.oddy@sotechnology.co.uk", $personname); $mail->AddReplyTo($CONFIG['emailfromemail'], $CONFIG['emailfromname']); $mail->IsHTML(true); $mail->Subject = "WD Profile Test Lost Tokens"; // Body is the HTML version $mail->Body = $emailstring; $mail->Send(); $foundtokens = true; } else { $feedback = "Email address not found."; } } ?>

Lost your Token?

Please enter your email address in the box below to retrieve your token(s):

Thank you, we've sent you an email with your token(s).