master-login-system icon indicating copy to clipboard operation
master-login-system copied to clipboard

issue in reset password

Open riteshkind opened this issue 9 years ago • 2 comments

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\freefile\lib\options.class.php on line 36

what i hv to write in that code??? please help me out...

Code is here where is error..... plz plz help me...

public function sendMail($to, $subject, $message, $from = 'From: [email protected]', $isHtml = true) {

    $from .= "\r\n"; // we make sure we have an endline
	if($isHtml) {
		$from .= "MIME-Version: 1.0 \r\n";
        $from .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
	}
	$from .= 'X-Mailer: PHP/'.phpversion()."\r\n";
    
	return mail($to, $subject, $message, $from);
    
}

riteshkind avatar Jan 18 '17 01:01 riteshkind

This isn't a problem with this project, but with your current localhost xampp mailserver.

Try to run this on a shared hosting server and it will probably work just fine.

Alternatively you can try to search google on how to setup a local mail server on xampp.

krozendaal avatar Mar 05 '17 08:03 krozendaal

i hosted on the server only... but the account activation through mail is working... but the password reset is not working.... Just visit here free-file.cu.cc it's just a template I hosted to check whether it's working or not....

-- Thanks & Regards Ritesh Kumar +919206928346

On 5 Mar 2017 14:06, "kreekhoorn" [email protected] wrote:

This isn't a problem with this project, but with your current localhost xampp mailserver.

Try to run this on a shared hosting server and it will probably work just fine.

Alternatively you can try to search google on how to setup a local mail server on xampp.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ionutvmi/master-login-system/issues/30#issuecomment-284213865, or mute the thread https://github.com/notifications/unsubscribe-auth/AYBaxktttKtVTnIo3TfSJC05PoC4tD-yks5rinQYgaJpZM4LmWzD .

riteshkind avatar Mar 05 '17 09:03 riteshkind