close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Email Password

Thread began 4/08/2010 8:26 am by pogro711404698 | Last modified 4/09/2010 6:18 am by Jason Byrnes | 1432 views | 6 replies |

pogro711404698

Email Password

hello,

I created a page for registered users password retrievals.

i noticed that even i entered the email address in the form field, it sends the info to the email add that is listed 1st in my database not to the email i've entered in the form field,.

any help would be highly appreciated.

thanks

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page so I can examine the code.

Sign in to reply to this post

pogro711404698

<?php require_once('Connections/boulevardstyle.php'); ?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once('Connections/boulevardstyle.php');?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_boulevardstyle, $boulevardstyle);
$query_users = "SELECT * FROM users";
$users = mysql_query($query_users, $boulevardstyle) or die(mysql_error());
$row_users = mysql_fetch_assoc($users);
$totalRows_users = mysql_num_rows($users);

function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("mail.google.com/a/boulevardstyle.com ","25","support@mail.google.com/a/boulevardstyle.com ","","","");
$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

if(isset($_POST["button_x"])){
//WA SecurityAssist Email object="Mail for Windows"
$WA_Auth_Parameter = array(
"connection" => $boulevardstyle,
"database" => $database_boulevardstyle,
"tableName" => "users",
"filterColumn" => "emailaddress",
"columnValue" => "".$row_users['emailaddress'] ."",
"columnType" => "text",
"usernameColumn" => "emailaddress",
"passwordColumn" => "password",
"selectColumns" => array("1st_name"),
"sessionVariables" => array(""),
"successRedirect" => "index.html",
"failRedirect" => "taken.php",
"keepQueryString" => TRUE,
"toAddressColumn" => "emailaddress",
"fromAddress" => "support@boulevardstyle.com",
"fromAddressDisplay" => "Boulevard Support",
"subject" => "Boulevardstyle Log In Details",
"mailBody" => "Dear [1st_name]\n\nHere are your requested details.\n\nUser name: [emailaddress]\n\nPassword: [password]\n\nto Log In: click the link below\n\nwww.boulevardstyle.com/userLogIn.php\n\n",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);

WA_Auth_ForgotPassword($WA_Auth_Parameter);

Sign in to reply to this post

pogro711404698

hello,

i found out also that, even i entered unregistered email, it also send to that sane email that it always use to.....

thanks for the help.

Sign in to reply to this post

Jason ByrnesWebAssist

this is because you have set the Lookup value to use the emailaddress column of your users recordset.



on your page, you should have a form with a text box for the user to enter their email address and a button to submit the form.

On the second step of the Email Password server behavior, In the login details section, set the Look up column to the emailaddress column, click the Lightning bolt next to lookup value and select the email address form element.

Sign in to reply to this post

pogro711404698

Originally Said By: Jason Byrnes
  this is because you have set the Lookup value to use the emailaddress column of your users recordset.



on your page, you should have a form with a text box for the user to enter their email address and a button to submit the form.

On the second step of the Email Password server behavior, In the login details section, set the Look up column to the emailaddress column, click the Lightning bolt next to lookup value and select the email address form element.  



Yes indeed, i figured it out. thanks for the help anyway,.

now my question is,

i did the testing sending emails to gmail, yahoo, but it does not send to any hotmail account. is this because i've chosen the mail for linux instead of mail for windows in the options?

thanks again in advance...

Sign in to reply to this post

Jason ByrnesWebAssist

If you are getting the email at some addresses but not others, there are 2 likely scenarios;

1) The email is being trapped in a spam filter on the hotmail servers, check your junkmail folder

2) The SMTP server is refusing to relay email messages to the hotmail domain, you will need to contact your host to see if there something that can be done about that.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...