For some reason I can't get my emial to send from one page on my site. I've looked at the code over and over and can't find the problem!
Please Help
$to = $_POST['email'];
$email_subject = "Info";
$message = "Here is the information you requested:" . "\n" . "" . "\n \n" . "" . "http://www.webpage.ca \n";
$message .= "\n" . $pass[0] . " \n";
$headers = "From: CardGuard <info@email.ca>";
mail($to, $email_subject, $message, $headers);
$to_print = '<br><span class="DefaultTxtRed">Your password has been sent to you</span>';
$pass[0] is the password that it got from the database. This script only runs if known email has been entered. and I know it runs through it cause the $to_print does get set properly, I just don't get an email.
Thanks