I currently have a php script to send emails from Ubuntu server with sendmail.
$to = $sendTo;
$subject = $subjectPrefix . $subject;
$txt = $message;
$headers = array(
  "From: ". $email,
  "Reply-To: ".$email,
  "Content-type:text/html;charset=UTF-8",
  "MIME-Version: 1.0",
  "X-Mailer: PHP/" . PHP_VERSION
);
$headers = implode("\r\n", $headers);
if(mail($to,$subject,$txt,$headers)){
  echo "sent";
}
else {
  echo "failed";
}
The emails send fine but always go into spam and have the server address attached to the email, for exmaple: "input@email.com"@ip-###-##-##-###.eu-west-2.compute.internal
How would i go about setting this to only show the input email and not go into spam?
 
     
    