Not sure how is this related to PHP-FIG. If you need help relating to using
PHP, try StackOverflow. I am sure however that this specific question has
been answered many times before.

On Sat, 15 Jul 2017 at 14:41, Hitesh Patel <ghodasarahit...@gmail.com>
wrote:

>  mails sent through PHP mail() from going to spam
>
> $to = $email;
>         $fromMail = "i...@prashantfarmer.com";
>
>
>         $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 php-fig+unsubscr...@googlegroups.com.
> To post to this group, send email to php-fig@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/php-fig/f6764665-9fa3-43fa-a15b-046ff2dae0de%40googlegroups.com
> <https://groups.google.com/d/msgid/php-fig/f6764665-9fa3-43fa-a15b-046ff2dae0de%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CALnTN6uY0iy5tC6xrTJ4bp7doask_dGbqAH%2BmNxefTok3Sk%2B6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to