close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

forgotten password

Thread began 4/28/2010 2:18 am by info399547 | Last modified 4/28/2010 8:37 am by Jason Byrnes | 2124 views | 5 replies |

info399547

forgotten password

Hi guys i have a serious issue with the forgotten password page.

This is my code:

<?php require_once('../Connections/scipt.php');?>
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("".((isset($_SERVER["SERVER_NAME"]))?$_SERVER["SERVER_NAME"]:"") ."","".((isset($_SERVER["SERVER_PORT"]))?$_SERVER["SERVER_PORT"]:"") ."","","","","");
$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["Send_x"])){
//WA SecurityAssist Email object="Mail for Windows"
$WA_Auth_Parameter = array(
"connection" => $scipt,
"database" => $database_scipt,
"tableName" => "users",
"filterColumn" => "email",
"columnValue" => "".((isset($_POST["emailAddress"]))?$_POST["emailAddress"]:"") ."",
"columnType" => "text",
"usernameColumn" => "username",
"passwordColumn" => "password",
"selectColumns" => array(""),
"sessionVariables" => array(""),
"successRedirect" => "",
"failRedirect" => "",
"keepQueryString" => FALSE,
"toAddressColumn" => "email",
"fromAddress" => "sciptADMIN@med.usyd.edu.au",
"fromAddressDisplay" => "Lisa Harvey",
"subject" => "scipt org",
"mailBody" => "User name: [username]\nPassword: [password]",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);

WA_Auth_ForgotPassword($WA_Auth_Parameter);
}
?>

and this is the error i keep getting

Server Error
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

If i change the server name to any other name the page spews up

Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.secureserver.net" port 80, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\Hosting\6038886\html\WA_SecurityAssist\Mail_PHP.php on line 209

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to contact your host to determine the correct smtp server to use in order to send emails using the php mail() function.

Using the $_SERVER['SERVER_NAME'] will not work correctly.

Sign in to reply to this post

info399547

i have used mail.internode.on.net which my provider generic fall back server i normally use when travelling to send emails from my laptop!

It returns a valid value but no email is ever delivered!

$WA_MailObject = WA_SecurityAssist_Definition("mail.internode.on.net","25","mail.internode.on.net","","","");

Sign in to reply to this post

Jason ByrnesWebAssist

that server may require authentication to relay emails, in which case it cannot be used with the php mail function.


Please contact your host to determine the correct smtp server to use wit hthe PHP mail() function.

Sign in to reply to this post

info399547

i'm using this server because i KNOW doesn't need authentication!
can you come up with something a bit more concrete please!!
i need to fix this issue for my client ASAP!

forgotten_password.php

Sign in to reply to this post

Jason ByrnesWebAssist

the first thing I would do is add redirects for the look up success and lookup fail in the email password server behavior. make sure to use different pages for the success and fail redirect so you can gauge whether the email is truly being sent.

If it is redirecting to the success page, and you still do not get the email, there are 2 possibilities.

1) The email is being caught in a spam filter, check your spam folder.

2) The smtp server is refusing to relay the email for some reason. It may be that the smtp server will not relay emails for that from address you are using. It may be that the SMTP server will not relay email to the to address you are using. To find out why the email is not being relayed, you will need to contact the host. They will need to examine the smtp servers error logs to see why the email is not being relayed.

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