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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Forgot password page does not send email

Thread began 10/24/2016 6:03 pm by bjgarner241692 | Last modified 10/27/2016 1:05 pm by Ray Borduin | 566 views | 8 replies |

bjgarner241692

Forgot password page does not send email

I have never used the Security Assist embedded in DataBridge. I have always used v 4 which was pretty rock solid. I noticed with this version that all of the email content is on page rather than in a separate UE folder.

Here is the email code on my page. I cannot find an error but the email is never sent. Webserver address has been edited.

<?php
function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("127.0.0.1","25","","","","");
$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["ForgotPassword_submit"]) || isset($_POST["ForgotPassword_submit_x"])){
//WA SecurityAssist Email object="mail"
$WA_Auth_Parameter = array(
"connection" => $conn,
"database" => $database_conn,
"tableName" => "agents",
"filterColumn" => "Email",
"filterEncryption" => "",
"columnValue" => "".((isset($_POST["Forgot_Password_group_Email"]))?$_POST["Forgot_Password_group_Email"]:"") ."",
"columnType" => "text",
"usernameColumn" => "Email",
"usernameEncryption" => "",
"passwordColumn" => "Password",
"passwordEncryption" => "",
"selectColumns" => array("Email","Password"),
"sessionVariables" => array(""),
"successRedirect" => "login.php?emailedPassword=1",
"failRedirect" => "forgotpwd.php",
"keepQueryString" => TRUE,
"toAddressColumn" => "Email",
"toAddressEncryption" => "",
"fromAddress" => "webserver@VALID_DOMAIN.com",
"fromAddressDisplay" => "THEWEBSITE",
"subject" => "Access",
"mailBody" => "../webassist/security_assist/email/forgotpwd_email.php",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);

WA_Auth_ForgotPassword($WA_Auth_Parameter);
}
?>

Sign in to reply to this post

Ray BorduinWebAssist

Can I get FTP access and a url to the page you are testing to debug? I don't see the problem with this code.

You might try removing the ip address and port in the mail settings:
$WA_MailObject = WA_SecurityAssist_Definition("127.0.0.1","25","","","","");

Those are usually defaulted to the correct value by your host and the defaults should be used if they aren't overwritten like:
$WA_MailObject = WA_SecurityAssist_Definition("","","","","","");

To debug further I'd have to have access to the code and web site to reproduce.

Sign in to reply to this post

bjgarner241692

in PM. Thanks

Sign in to reply to this post

Ray BorduinWebAssist

Who is your hosting provider? You may need to specify a smtp server besides the localhost.

I can't get emails to send from your server. I added a test page called emailtest.php. It is a simple email test to see if email works in general on your server and it appears to not work. Maybe contact your hosting providers tech support and ask them why php mail doesn't work on your server.

Sign in to reply to this post

bjgarner241692

I am the host.

I have many, many dozens of implementations of WA Universal Email on that server and all work just fine. There is a mail server on the server and localhost works just fine for all of them whether they are in ASP or PHP.

That is not the issue.

btw initially it was ("","","","","","");
I had tried 127.0.0.1 and 25 to emulate WA Universal Email. Also tried dropping one of the quote sets as per WAUE but that did not work.

Sign in to reply to this post

Ray BorduinWebAssist

I've created another page in the root of the site named emailtest.php. It is a simple application of universal email and it doesn't send either.

Do you have access to the SMTP server logs? That might be able to shed light on the issue.

If you can set up a Universal Email page that works, then I can use that to debug and determine the difference, but it still appears to me that email isn't working in general from this site based on the two tests I've referenced.

Sign in to reply to this post

bjgarner241692

log excerpt attached in PM.
I did add a form - same folder form.php, strangely I get the same situation. I can see it go to the Mail Server in the logs but it is denied with 501 5.1.7 Bad sender address syntax**

Info to reach working UE form in PM as well.

Sign in to reply to this post

Ray BorduinWebAssist

There has to be a configuration issue on the server preventing the email. The issue isn't with the code on the page.

I've uploaded the exact same script to both servers. When I test on the one it sends and when I test on the other it doesn't.

The code is the same on both. So it has to be an issue with the server configuration of some sort.

Sign in to reply to this post

bjgarner241692

Very strange. It occurred to me that the www version of this domain uses UE with CDOSYS and it has always worked fine. I copied the new site into a subdirectory of the www for this domain and the emails send fine. They do not send though from the subdomain.

This is the same site I had an issue with here: http://www.webassist.com/forums/posts.php?id=3086, where I had to have my Testing Server in the subdirectory rather than the subdomain site in order for Dreamweaver to show my recordsets in the bindings panel.

In each case the domains and subdomains are all on the same physical server utilizing the same mail server so it is not a mail server configuration issue. It is not worth troubleshooting though.

I am sure it will be fine in it's final destination as the code is good. Thank you for looking into it.

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