I have a problem with my mail in php. I code form to send email. I receive email on gmail but I have other mail address and I can't get email on it. I checked in spam and there is no email also. Below is my code.
<?php
$emailErr = "";
$endMessage = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST["email"])) {
$emailErr = "Proszę uzupełnić pole e-mail";
}
else if (isset($_REQUEST['email']))
//if "email" is filled out, send email
{
//send email
$namesurname = $_REQUEST['name_surname'] ;
$email = $_REQUEST['email'] ;
$number = $_REQUEST['number'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
$message = $subject . ": " . $message . " " . $number . " " . $namesurname . " " . $email;
$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
mail("szafor@szafor.pl", "Zamówienie pomiaru",
$message, "From: formularz@szafortest.pl
"."Content-Type: text/plain; charset=UTF-8
");
$endMessage = "Dziękuję za przesłanie wiadomości.";
}
}
?>