Mail() isn't working for some odd reason, it works in another one(registration), just not this one(password reset).
My script:
I also get this error in my config file:
A little bit of my config file script:
My script:
PHP:
//Allow html in email $headers = "From: manseld5@gmail.com"."\r\n"; $headers .= "Content-type: text/html"."\r\n"; $emailMsg = 'If you want to reset the password to your account: '.$user.'<br> Go <a href="http://superfuntime.comlu.com?ext=/scripts/resetpass.php?code='.$genCode.'">here</a>.'; $sentEmail = mail($email, "Password Reset For $user", $emailMsg, $headers); if($sentEmail){ echo "<center><font color=green>An email has been sent to $maskedEmail!<br>The email may take up to 10 minutes to show up. Make sure you check your spam folder!</font></center>"; }
I also get this error in my config file:
Code:
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent in /home/cybert97/public_html/scripts/config.php on line 2
PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/cybert97/public_html/scripts/config.php:2) in /home/cybert97/public_html/scripts/config.php on line 2
A little bit of my config file script:
PHP:
<?phpsession_start();include("/home/cybert97/public_html/scripts/connectionfile.php");ini_set("session.cookie_httponly", true);ini_set('session.bug_compat_warn', 0);ini_set('session.bug_compat_42', 0);date_default_timezone_set("Europe/London");