close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

New password email not sent

Thread began 5/03/2010 4:39 pm by cal375160 | Last modified 5/12/2010 1:21 pm by Jimmy Wu | 1319 views | 8 replies |

cal375160

New password email not sent

The Securty Assist page users_EmailPW doesn't send a password to my email.

The php error log recorded the following errors:
[03-May-2010 14:23:26] PHP Notice: Undefined offset: 0 in /Applications/MAMP/htdocs/AAPVConventionSite/WA_SecurityAssist/Mail_PHP.php on line 78
[03-May-2010 14:23:26] PHP Notice: Undefined offset: 0 in /Applications/MAMP/htdocs/AAPVConventionSite/WA_SecurityAssist/Mail_PHP.php on line 80
[03-May-2010 14:23:26] PHP Notice: Undefined offset: 0 in /Applications/MAMP/htdocs/AAPVConventionSite/WA_SecurityAssist/Mail_PHP.php on line 130

What can I do to correct this problem?

Cal

Sign in to reply to this post

Jimmy Wu

It looks like there is an error with where the WA_SecurityAssist_SendMail call is being made. The mailFrom isn't being set up correctly. In the EmailPW.php page, find the place where the fromAddress and fromAddressDisplay are being set (you can search for either of those) and make sure they are set to your email address and the display that you set up in the wizard. It should look something like this:
"fromAddress" => "myemail@mydomain.com",
"fromAddressDisplay" => "displayname",

Let me know if that is the issue or not.

Sign in to reply to this post

cal375160

Email PW not working...

I changed the email I use and it now looks O.K. to me. Since then I am not getting PHP error codes in the logs, but I am not receiving any emailed password either.

Here's the code I can find:

<?php

function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("mail.aapvconvention.com","21","reservations@aapvconvention.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
?>
<?php
if(isset($_POST["Send_x"])){
//WA SecurityAssist Email object="Mail for Linux"
$WA_Auth_Parameter = array(
"connection" => $AAConvention,
"database" => $database_AAConvention,
"tableName" => "users",
"filterColumn" => "email",
"columnValue" => "".((isset($_POST["emailAddress"]))?$_POST["emailAddress"]:"") ."",
"columnType" => "text",
"usernameColumn" => "email",
"passwordColumn" => "password",
"selectColumns" => array(""),
"sessionVariables" => array(""),
"successRedirect" => "users_LogIn.php",
"failRedirect" => "users_EmailPW.php",
"keepQueryString" => TRUE,
"toAddressColumn" => "email",
"fromAddress" => "reservations@aapvconvention.com",
"fromAddressDisplay" => "Registration Administrator",
"subject" => "Your new password!",
"mailBody" => "User name: [email]\nPassword: [password]\n\nListed above are your User Name (your email address) and your new password. We suggest you log in and change your password as soon as possible and write your new, changed password someplace secure.",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);

WA_Auth_ForgotPassword($WA_Auth_Parameter);
}
?>

When I use the mail handler on my MAC I need to enter both a user name and password to send and receive messages. I don't see the password anywhere in this code nor do I recall seeing anywhere to add it in the setup process.

What do I need to do?

Cal

Sign in to reply to this post

Jimmy Wu

Can you attach the page the email is applied to so I can take a look at it?

Sign in to reply to this post

cal375160

Not sure I know what you mean...

I'm sorry, but I'm not sure what you mean. Following is the code (all of it) from the page generated by Security Assist. I have to send it in two sections since there are too many characters for one pass. This part is through the "head".

Cal

edit: I've attached the file for you.

Attached Files
page.php.zip
Sign in to reply to this post

cal375160

Rest of code

Here is the rest of the code for the EmailPW page generated by Security Assist.

Thanks

Cal

Sign in to reply to this post

Jimmy Wu

It looks like the post value Send_x is not being set when the form is being submitted. This is what is checked to see if the email should be sent or not. Try changing this line:
if(isset($_POST["Send_x"])){

to this:
if(isset($_POST["emailAddress"])){

and see if that helps. This will check if the email address from the form is set and send if it is.

Sign in to reply to this post

cal375160

Email PW not working...

I changed that line as you suggested but still got no email. The EmailPW page thinks it sent the email since it redirected to the LogIn page.

Are there settings in the MAMP server that I need to change?

Sign in to reply to this post

Jimmy Wu

I'm not that familiar with MAMP server, but I believe you may have to install an smtp server on it to be able to send emails.

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...