mails sent through PHP mail() from going to spam
$to = $email;
$fromMail = "[email protected]";
$subject = "Your Password";
$content = "Your Email : " . $email . " Your Password : " . $password
. "";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "From: $fromMail" . "\r\n" .
"Reply-To: $fromMail" . "\r\n" .
"X-Mailer: PHP/" . phpversion();
if (mail($to, $subject, $content, $headers, "-f $fromMail")) {
echo "<script>alert('Email sent');
window.location='login-register.php' </script>";
}
--
You received this message because you are subscribed to the Google Groups "PHP
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/f6764665-9fa3-43fa-a15b-046ff2dae0de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.