This is my code:
$to = \'to@mail.com\'; $subject = \'test\'; $body = \'test\'; $header = \'MIME-Version: 1.0\' . \"\\r\\n\"; $header .= \'Content-type: text/
Try setting the envelope sender, as well setting the sender in the headers of the message, like so:
$to = "to@to.com"; $from = "from@from.com"; $subject = "subject"; $message = "this is the message body"; $headers = "From: $from"; $ok = @mail($to, $subject, $message, $headers, "-f " . $from);