email password issue
I keep getting an error in my email password page...
I can only get the page to redirect to the error page... No matter what variables I change I get the "failRedirect" link...
Subsequently, I have a couple of questions...
1. the WA_SecurityAssist_Definition mail server is pop or smtp?
2. the filterColumn is filtering the email address or the row id?
Here's the code I have on the page...
<?php require_once('Connections/ReThinkNow.php');?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("smtpout.secureserver.net","25","info@rethinknow.net","","","");
$WA_MailObject = WA_SecurityAssist_SendMail($WA_MailObject,"","","",$WA_Auth_Parameter["toAddress"],"",$WA_Auth_Parameter["fromAddress"],$WA_Auth_Parameter["subject"],$WA_Auth_Parameter["mailBody"]);
$WA_MailObject = null;
}// WA_SecurityAssist_Email_1_SendMail
?>
<?php
if(isset($_POST["submit"])){
//WA SecurityAssist Email object="Mail for Linux"
$WA_Auth_Parameter = array(
"connection" => $ReThinkNow,
"database" => $database_ReThinkNow,
"tableName" => "rtnUser",
"filterColumn" => "rtnEmail",
"columnValue" => "".((isset($_POST["rtnEmail"]))?$_POST["rtnEmail"]:"") ."",
"columnType" => "text",
"usernameColumn" => "rtnEmail",
"passwordColumn" => "rtnPassword",
"selectColumns" => array(""),
"sessionVariables" => array(""),
"successRedirect" => "login.php",
"failRedirect" => "error.php",
"keepQueryString" => FALSE,
"toAddressColumn" => "rtnEmail",
"fromAddress" => "info@rethinknow.net",
"fromAddressDisplay" => "Info@ReThinkNow.net",
"subject" => "ReThink Now Information Requested",
"mailBody" => "Print out and keep this information safe. \n\nUser name: [rtnEmail]\nPassword: [rtnPassword]",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);
WA_Auth_ForgotPassword($WA_Auth_Parameter);
}
?>
Any help would be tremendous...
Ted