issue in reset password
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);
}
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.
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 .